-
Notifications
You must be signed in to change notification settings - Fork 98
/
Dockerfile
47 lines (40 loc) · 2.04 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
45
46
47
FROM python:3-slim-buster
RUN apt-get update \
&& RUNLEVEL=1 DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
g++ \
git \
vim \
openssh-client \
imagemagick \
ffmpeg \
libx264-dev \
libzmq3-dev \
libxml2-dev \
libxslt-dev \
zlib1g-dev \
liblapack-dev \
gfortran \
locales \
procps \
make \
&& apt-get autoremove \
&& apt-get clean \
&& echo "fr_FR.UTF-8 UTF-8" > /etc/locale.gen \
&& locale-gen
ENV LANG=fr_FR.UTF-8 \
LANGUAGE=fr_FR:fr \
LC_ALL=fr_FR.UTF-8
# Create a working directory.
RUN mkdir delta
WORKDIR delta
# Install Python dependencies.
COPY requirements.txt .
RUN pip3 install -r requirements.txt
# Copy the rest of the codebase into the image
ADD apps.tgz .
# le jeu qui suit n'est pas dans git, l'idéal serait que l'application delta
# fasse ce téléchargement pour ne pas être dans le docker non plus
RUN cd ps_ap_chessgames/; python3 get_data.py
# Finally, run gunicorn.
CMD [ "gunicorn", "--timeout=300", "--workers=5", "--threads=1", "-b 0.0.0.0:8000", "delta:server"]