16 lines
392 B
Plaintext
16 lines
392 B
Plaintext
|
FROM python:3.12 as builder
|
||
|
RUN pip install mkdocs
|
||
|
WORKDIR /app
|
||
|
COPY . /app
|
||
|
ENV SITE_DIR=/app/site
|
||
|
RUN mkdocs build --clean -d $SITE_DIR
|
||
|
|
||
|
|
||
|
FROM git.fjla.uk/fred.boniface/web-deploy:latest as compressor
|
||
|
COPY --from=builder /app/site/ /deploy/in/
|
||
|
RUN node /app/process.js
|
||
|
|
||
|
FROM nginx:alpine
|
||
|
RUN rm -rf /usr/share/nginx/html/*
|
||
|
COPY --from=compressor /deploy/out/ /usr/share/nginx/html/
|
||
|
EXPOSE 80
|