moviewyrm/Dockerfile

19 lines
620 B
Docker
Raw Normal View History

FROM python:3.9
ENV PYTHONUNBUFFERED 1
RUN mkdir /app /app/static /app/images
2020-03-22 21:33:26 +00:00
WORKDIR /app
# Use RUN curl because ADD will re-download the file every time to make sure it
# hasn't changed, which is exactly what we don't want
RUN mkdir -p /app/static/fonts/source_han_sans
RUN curl \
https://github.com/adobe-fonts/source-han-sans/raw/release/Variable/OTC/SourceHanSans-VF.ttf.ttc \
-o /app/static/fonts/source_han_sans/SourceHanSans-VF.ttf.ttc
2020-03-22 21:33:26 +00:00
COPY requirements.txt /app/
RUN pip install -r requirements.txt --no-cache-dir
2021-09-28 17:21:12 +00:00
RUN apt-get update && apt-get install -y gettext libgettextpo-dev tidy && apt-get clean