summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
blob: 2b4882a8d4a89c44ebac8eb8a35d9d8bfd79c80a (plain)
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:2.7-stretch

#COPY backports.list /etc/apt/sources.list.d/

RUN apt-get -y update && apt-get install -y mercurial \
            fonts-freefont-ttf locales survex python-levenshtein \
            python-pygraphviz

#RUN apt-get -y -t -backports install survex

# Set the locale
RUN locale-gen en_GB.UTF-8
ENV LANG en_GB.UTF-8  
ENV LANGUAGE en_GB:en  
ENV LC_ALL en_GB.UTF-8 

WORKDIR /opt/expo/troggle
COPY requirements.txt .

RUN pip install --upgrade pip

RUN pip install -r requirements.txt

EXPOSE 8000

WORKDIR /expo/troggle

#CMD ["python","manage.py","migrate"]

ENTRYPOINT ["python","manage.py","runserver","0.0.0.0:8000"]