You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
656 B
22 lines
656 B
FROM python:3.6
|
|
|
|
# update packagesdock
|
|
RUN apt-get -qq update
|
|
RUN apt-get install --yes apt-utils
|
|
RUN apt-get install --yes apache2 apache2-dev
|
|
RUN apt-get install --yes texlive texlive-lang-german texlive-latex-extra
|
|
RUN mkdir /usr/share/texlive/texmf-dist/tex/latex/pgf-pie
|
|
COPY pgf-pie.sty /usr/share/texlive/texmf-dist/tex/latex/pgf-pie/
|
|
RUN mktexlsr
|
|
RUN pip install mod_wsgi
|
|
|
|
RUN mkdir /code
|
|
WORKDIR /code
|
|
|
|
COPY . /code/
|
|
RUN chown -R www-data:www-data /code/
|
|
|
|
# copy and install requirements first to leverage caching
|
|
RUN pip install -r /code/requirements.txt
|
|
|
|
CMD mod_wsgi-express start-server /code/co2budget/wsgi.py --user www-data --group www-data
|