Skip to content

Commit

Permalink
Use poetry for docs dependency management
Browse files Browse the repository at this point in the history
  • Loading branch information
Syriiin committed Oct 24, 2024
1 parent 0dd27d2 commit 1fbe94a
Show file tree
Hide file tree
Showing 4 changed files with 979 additions and 43 deletions.
8 changes: 5 additions & 3 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@ FROM python:3.12-alpine3.19

RUN apk add --no-cache tini

RUN pip install poetry=="1.8.3"

WORKDIR /docs

COPY requirements.txt .
COPY pyproject.toml poetry.lock ./

RUN pip install --no-cache-dir -r requirements.txt
RUN poetry install --no-cache

COPY . .

EXPOSE 8000

ENTRYPOINT [ "/sbin/tini", "--", "mkdocs" ]
ENTRYPOINT [ "/sbin/tini", "--", "poetry", "run", "mkdocs" ]

CMD [ "serve", "--dev-addr=0.0.0.0:8000"]
Loading

0 comments on commit 1fbe94a

Please sign in to comment.