2018-04-15 12:00:59 +01:00
|
|
|
FROM python:2.7-stretch
|
2018-04-11 22:03:48 +01:00
|
|
|
|
2018-04-15 12:00:59 +01:00
|
|
|
#COPY backports.list /etc/apt/sources.list.d/
|
|
|
|
|
2019-07-16 00:07:37 +01:00
|
|
|
RUN apt-get -y update && apt-get install -y mercurial \
|
|
|
|
fonts-freefont-ttf locales survex python-levenshtein \
|
|
|
|
python-pygraphviz
|
2018-04-15 12:00:59 +01:00
|
|
|
|
|
|
|
#RUN apt-get -y -t -backports install survex
|
2018-04-11 22:03:48 +01:00
|
|
|
|
|
|
|
# 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 .
|
|
|
|
|
2018-04-15 12:00:59 +01:00
|
|
|
RUN pip install --upgrade pip
|
|
|
|
|
2018-04-11 22:03:48 +01:00
|
|
|
RUN pip install -r requirements.txt
|
2018-04-11 22:18:15 +01:00
|
|
|
|
|
|
|
EXPOSE 8000
|
|
|
|
|
2018-04-15 12:00:59 +01:00
|
|
|
WORKDIR /expo/troggle
|
|
|
|
|
2019-02-23 15:30:58 +00:00
|
|
|
#CMD ["python","manage.py","migrate"]
|
|
|
|
|
|
|
|
ENTRYPOINT ["python","manage.py","runserver","0.0.0.0:8000"]
|