Initial
This commit is contained in:
16
dockerfile
Normal file
16
dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
Reference in New Issue
Block a user