-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
44 lines (31 loc) · 1.15 KB
/
Dockerfile
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
39
40
41
42
43
44
FROM alpine:3.5
# RUN apk add --update --no-cache bash ca-certificates && update-ca-certificates
RUN apk add --update --no-cache bash ca-certificates python3 \
&& python3 -m ensurepip \
&& rm -r /usr/lib/python*/ensurepip \
&& pip3 install --upgrade pip setuptools \
&& update-ca-certificates \
&& rm -r /root/.cache
ENV DEVPI_SERVER_VERSION=4.2.1 \
DEVPI_WEB_VERSION=3.1.1 \
DEVPI_CLIENT_VERSION=2.7.0 \
DEVPI_CLEANER_VERSION=0.2.0 \
DEVPI_SEMANTIC_UI_VERSION=0.2.2 \
DEVPI_THEME=semantic-ui
RUN apk add --no-cache --virtual .build-deps gcc python3-dev libffi-dev musl-dev \
&& pip install devpi-server==$DEVPI_SERVER_VERSION \
devpi-web==$DEVPI_WEB_VERSION \
devpi-client==$DEVPI_CLIENT_VERSION \
devpi-cleaner==$DEVPI_CLEANER_VERSION \
devpi-semantic-ui==$DEVPI_SEMANTIC_UI_VERSION \
&& apk del .build-deps \
&& rm -r /root/.cache
ENV DEVPI_SERVERDIR /devpi/server
RUN mkdir -p $DEVPI_SERVERDIR
ENV DEVPI_CLIENTDIR /devpi/client
RUN mkdir -p $DEVPI_CLIENTDIR
VOLUME $DEVPI_SERVERDIR $DEVPI_CLIENTDIR
ENV DEVPI_PORT 3141
EXPOSE $DEVPI_PORT
COPY serve.sh /
CMD ["/serve.sh"]