forked from pdokoupil/EasyStudy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 705 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (21 loc) · 705 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
30
FROM python:3.9-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
gcc \
g++ \
libstdc++6 \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
COPY server/pip_requirements.txt /tmp/pip_requirements.txt
RUN python -m pip install --upgrade pip setuptools wheel \
&& python -m pip install --index-url https://download.pytorch.org/whl/cpu torch \
&& python -m pip install -r /tmp/pip_requirements.txt
COPY . /app
RUN chmod +x /app/server/docker-entrypoint.sh
EXPOSE 5000
ENTRYPOINT ["/app/server/docker-entrypoint.sh"]