Skip to content

Commit

Permalink
Merge pull request #87 from Syriiin/use-poetry
Browse files Browse the repository at this point in the history
Use poetry for docs dependency management
  • Loading branch information
Syriiin authored Oct 24, 2024
2 parents 0dd27d2 + 1fbe94a commit c388b02
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 c388b02

Please sign in to comment.