Fixes Dockerfile to delete requirements.txt.

Moved timezone initialization to texlife and made sure to delete
requirements.txt in Dockerfile.
This commit is contained in:
Patrick Elsen 2018-10-15 02:52:40 +02:00
parent 08926ad2aa
commit da81ed4015

View file

@ -4,10 +4,6 @@ ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -qqy
RUN apt-get install -qqy --no-install-recommends apt-utils
# Setup timezone.
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Install Python 3.7.
WORKDIR /root
RUN apt-get install -qqy build-essential libsqlite3-dev sqlite3 bzip2 \
@ -27,8 +23,13 @@ RUN rm -rf Python-3.7.0*
RUN apt-get install -qqy libcairo2-dev libjpeg-dev libgif-dev
COPY requirements.txt requirements.txt
RUN python3 -m pip install -r requirements.txt
RUN rm requirements.txt
RUN apt-get install -qqy ffmpeg
# Setup timezone, necessary for textlive.
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get install -qqy apt-transport-https
RUN apt-get install -qqy texlive-full
RUN apt-get install -qqy sox