nuke Dockerfile

This commit is contained in:
Marcello 2024-09-10 18:36:35 +02:00
parent cb8ff2a323
commit ea0657d266
Signed by: m-lamonaca
SSH key fingerprint: SHA256:8db8uii6Gweq7TbKixFBioW2T8CbgtyFETyYL3cr3zk

View file

@ -1,29 +0,0 @@
FROM python:3.11-bookworm as pre-build
ENV POETRY_HOME=/opt/poetry
RUN curl -sSL https://install.python-poetry.org | python3 -
FROM pre-build as build
WORKDIR /app
COPY ./pyproject.toml ./
COPY ./poetry.lock ./
RUN $POETRY_HOME/bin/poetry install
COPY ./mkdocs.yml ./
COPY ./docs ./docs
COPY ./README.md ./docs/README.md
RUN $POETRY_HOME/bin/poetry run mkdocs build
FROM python:3.11-alpine as runtime
WORKDIR /app
COPY --from=build ./app/site ./
ENTRYPOINT [ "python3" ]
CMD [ "-m", "http.server", "8000" ]