-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
53 lines (38 loc) · 1.01 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
48
49
50
51
52
53
FROM python:3.6
# Install.
RUN apt-get update && apt-get install -y --no-install-recommends \
tzdata \
python3-setuptools \
python3-pip \
python3-dev \
python3-venv \
git \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN mkdir /modules
WORKDIR /modules
RUN git clone https://github.com/ReNom-dev-team/ReNom.git
RUN git clone https://github.com/ReNom-dev-team/ReNomRL.git
RUN pip3 install numpy && \
pip3 install django && \
pip3 install gunicorn
# set default environment variables
ENV PYTHONUNBUFFERED 1
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV DEBIAN_FRONTEND=noninteractive
ENV PORT=8000
#RUN pip3 install pipenv
#RUN pipenv install --skip-lock --system --dev
WORKDIR /modules/ReNom
RUN pip3 install -r requirements.txt
RUN pip3 install -e .
WORKDIR /modules/ReNomRL
RUN pip3 install -e .
ADD src /src
WORKDIR /src
#CMD alias python="python3"
#CMD alias pip="pip3"
EXPOSE 8000
CMD gunicorn main.wsgi:application --bind 0.0.0.0:$PORT