2024-01-05 08:02:44 -05:00
|
|
|
from python:3.11
|
|
|
|
RUN pip install --upgrade pip poetry
|
|
|
|
COPY pyproject.toml poetry.lock /
|
|
|
|
|
2024-01-05 08:09:22 -05:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
libcairo2-dev \
|
|
|
|
libfreetype6-dev \
|
|
|
|
libjpeg-dev \
|
|
|
|
libffi-dev \
|
|
|
|
libpng-dev \
|
|
|
|
libz-dev \
|
2024-01-05 08:02:44 -05:00
|
|
|
pngquant
|
|
|
|
RUN poetry config virtualenvs.create false
|
|
|
|
RUN poetry install -n --with docs
|
|
|
|
|
|
|
|
COPY .docs /.docs
|
|
|
|
COPY mkdocs.yml /
|
|
|
|
|
|
|
|
WORKDIR /.docs
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["mkdocs", "serve", "--dev-addr=0.0.0.0:8000"]
|