mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-23 18:14:01 +03:00
72da0bfa9c
Co-authored-by: Andrew-Chen-Wang <Andrew-Chen-Wang@users.noreply.github.com> Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
32 lines
1.1 KiB
Docker
32 lines
1.1 KiB
Docker
FROM python:3.8-slim-buster
|
|
|
|
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 \
|
|
# Uncomment below lines to enable Sphinx output to latex and pdf
|
|
# && apt-get install -y texlive-latex-recommended \
|
|
# && apt-get install -y texlive-fonts-recommended \
|
|
# && apt-get install -y texlive-latex-extra \
|
|
# && apt-get install -y latexmk \
|
|
# 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.
|
|
RUN pip install -r /requirements/local.txt -r /requirements/production.txt
|
|
|
|
COPY ./compose/local/docs/start /start-docs
|
|
RUN sed -i 's/\r$//g' /start-docs
|
|
RUN chmod +x /start-docs
|
|
|
|
WORKDIR /docs
|