-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·45 lines (36 loc) · 942 Bytes
/
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
45
FROM python:3.6.6-slim-stretch
ENV PIP_PACKAGES="\
pyyaml \
cffi \
h5py \
numpy \
pandas \
joblib \
matplotlib \
jupyter \
notebook \
ipython \
gym" \
PYTHON_VERSION=3.6.6 \
PATH=/usr/local/bin:$PATH \
PYTHON_PIP_VERSION=9.0.1 \
LANG=C.UTF-8
RUN set -ex; \
apt-get update -y; \
apt-get upgrade -y; \
# ln -s /usr/bin/python3 /usr/bin/python; \
# ln -s /usr/bin/python3-config /usr/bin/python-config; \
# ln -s /usr/bin/pip3 /usr/bin/pip; \
pip install -U -v setuptools wheel; \
pip install -U -v ${PIP_PACKAGES}; \
# apt-get remove --purge --auto-remove -y ${BUILD_PACKAGES}; \
apt-get clean; \
apt-get autoclean; \
apt-get autoremove -y;
EXPOSE 8080
RUN mkdir -p /app
COPY . /app
WORKDIR /app
ADD start.sh /app/start.sh
RUN chmod +x /app/start.sh
CMD ["/app/start.sh"]