-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile_x86_64
38 lines (34 loc) · 867 Bytes
/
Dockerfile_x86_64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
ARG ARCH=frommakefile
ARG DOCKERSRC=frommakefile
ARG USERNAME=frommakefile
#
FROM ${USERNAME}/${DOCKERSRC}:${ARCH}
#
ARG PUID=1000
ARG PGID=1000
ARG ROLE=master
#
ENV DGID=995 \
WORKERNAME= \
PASSWORD= \
MASTERADDRESS= \
REQUIRED_PIP= \
REQUIRED_APK=
#
RUN set -xe \
&& addgroup -g ${DGID} docker && addgroup alpine docker \
&& apk add -uU --virtual .build-dependencies python3-dev libffi-dev openssl-dev build-base \
&& if [ "${ROLE}" = "master" ]; \
then \
pip install --no-cache --upgrade buildbot[bundle,tls] txrequests ; \
fi \
&& if [ "${ROLE}" = "worker" ]; \
then \
pip install --no-cache --upgrade buildbot-worker ; \
fi \
&& apk del --purge .build-dependencies \
&& rm -rf /var/cache/apk/* /tmp/*
COPY root/ /
VOLUME /home/alpine
EXPOSE 9989 8010/tcp 9990
ENTRYPOINT ["/init"]