2021-10-26 14:40:42 +03:00
|
|
|
FROM python:3.9-slim-bullseye
|
2020-04-24 17:23:41 +03:00
|
|
|
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
# dependencies for building Python packages
|
|
|
|
&& apt-get install -y build-essential \
|
|
|
|
# psycopg2 dependencies
|
|
|
|
&& apt-get install -y libpq-dev \
|
|
|
|
# Translations dependencies
|
|
|
|
&& apt-get install -y gettext \
|
2020-06-29 23:51:33 +03:00
|
|
|
# Uncomment below lines to enable Sphinx output to latex and pdf
|
2020-05-18 17:33:57 +03:00
|
|
|
# && apt-get install -y texlive-latex-recommended \
|
2020-06-29 23:51:33 +03:00
|
|
|
# && apt-get install -y texlive-fonts-recommended \
|
|
|
|
# && apt-get install -y texlive-latex-extra \
|
|
|
|
# && apt-get install -y latexmk \
|
2020-04-24 17:23:41 +03:00
|
|
|
# cleaning up unused files
|
|
|
|
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# Requirements are installed here to ensure they will be cached.
|
|
|
|
COPY ./requirements /requirements
|
|
|
|
# All imports needed for autodoc.
|
2020-06-29 23:52:10 +03:00
|
|
|
RUN pip install -r /requirements/local.txt -r /requirements/production.txt
|
2020-04-24 17:23:41 +03:00
|
|
|
|
2020-11-04 20:17:02 +03:00
|
|
|
COPY ./compose/local/docs/start /start-docs
|
|
|
|
RUN sed -i 's/\r$//g' /start-docs
|
|
|
|
RUN chmod +x /start-docs
|
2020-04-24 17:23:41 +03:00
|
|
|
|
2020-11-04 20:17:02 +03:00
|
|
|
WORKDIR /docs
|