docs/dockerfile

18 lines
481 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 -d $SITE_DIR
2024-04-26 18:45:10 +01:00
FROM git.fjla.uk/fred.boniface/web-deploy:0.0.2 as compressor
2024-04-26 18:45:10 +01:00
COPY --from=builder /app/site/ /deploy/in/
RUN node /app/process.js
FROM georgjung/nginx-brotli:mainline-alpine
RUN rm -rf /usr/share/nginx/html/* && rm -f /etc/nginx/nginx.conf
COPY ./nginx.conf /etc/nginx/nginx.conf
2024-04-26 18:45:10 +01:00
COPY --from=compressor /deploy/out/ /usr/share/nginx/html/
EXPOSE 80