Build the first image
This commit is contained in:
11
Containerfile
Normal file
11
Containerfile
Normal file
@ -0,0 +1,11 @@
|
||||
FROM python:3.13 AS builder
|
||||
RUN apt-get update -y
|
||||
RUN apt-get install -y pipx
|
||||
RUN pip install poetry
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
RUN python -m poetry install --no-root
|
||||
RUN python -m poetry run mkdocs build
|
||||
|
||||
FROM nginx:1.27.3
|
||||
COPY --from=builder /src/site /usr/share/nginx/html
|
Reference in New Issue
Block a user