-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (19 loc) · 763 Bytes
/
Dockerfile
File metadata and controls
28 lines (19 loc) · 763 Bytes
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
FROM python:3.6.4-slim-stretch
WORKDIR /application/devpi
ADD requirements.txt /application/devpi/requirements.txt
RUN pip install wheel && \
pip install -r requirements.txt --src /usr/local/src --no-cache-dir
ADD . /application/devpi
ENV DEVPI_MIRROR_CACHE_EXPIRY=86400 \
DEVPI_CLIENTDIR=/application/client \
DEVPI_SERVERDIR=/application/server \
DEVPI_LOGGER_CFG=/application/devpi/logger_cfg.json \
DEVPI_PASSWORD=ChaNgeMEPleaseLOL771 \
PYTHONUNBUFFERED=1
RUN mkdir -vp $DEVPI_CLIENTDIR $DEVPI_SERVERDIR && \
adduser --uid 1000 --home /application --disabled-password --gecos "" devpi && \
chown -hR devpi: /application
VOLUME /application/server
USER devpi
EXPOSE 3141
ENTRYPOINT ["/application/devpi/entrypoint.sh"]