15 lines
403 B
Docker
15 lines
403 B
Docker
FROM python:3 AS builder
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY requirements.txt ./
|
|
RUN python -m venv ./python && \
|
|
. ./python/bin/activate && \
|
|
pip install --upgrade pip && \
|
|
pip install --use-pep517 --no-cache-dir -r requirements.txt
|
|
COPY . .
|
|
RUN . ./python/bin/activate && \
|
|
mkdocs build --clean --strict
|
|
|
|
FROM nginx:stable AS runtime
|
|
COPY --from=builder /usr/src/app/site /usr/share/nginx/html
|