docs/dockerfile

16 lines
392 B
Plaintext
Raw Normal View History

2024-04-26 18:45:10 +01:00
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