forked from luzfcb/docker-devpi-nginx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 765 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 765 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
29
FROM python:3.5.2-slim
MAINTAINER Edu Herraiz <gshark@gmail.com>
VOLUME /data
# Things required for a python/pip environment
COPY system-requirements.apt /usr/src/app/system-requirements.apt
RUN \
apt-get update && \
apt-get -y upgrade && \
apt-get -y autoremove && \
xargs apt-get -y -q install < /usr/src/app/system-requirements.apt && \
apt-get -y autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt /usr/src/app/requirements.txt
RUN \
pip install --no-cache-dir pip setuptools -U && \
pip install --no-cache-dir -r /usr/src/app/requirements.txt -U
COPY create-user.sh /sbin/create-user
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["devpi-server"]
EXPOSE 8000