Update dockerfile
This commit is contained in:
15
dockerfile
15
dockerfile
@@ -1,4 +1,4 @@
|
||||
FROM python:3.12 as builder
|
||||
FROM python:3.12 AS builder
|
||||
RUN pip install mkdocs
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
@@ -6,12 +6,7 @@ ENV SITE_DIR=/app/site
|
||||
RUN mkdocs build -d $SITE_DIR
|
||||
|
||||
|
||||
FROM git.fjla.uk/fred.boniface/web-deploy:0.0.2 as compressor
|
||||
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
|
||||
COPY --from=compressor /deploy/out/ /usr/share/nginx/html/
|
||||
EXPOSE 80
|
||||
FROM caddy:alpine
|
||||
COPY --from=builder /app/site /srv
|
||||
EXPOSE 8080
|
||||
CMD ["caddy", "file-server", "--listen", ":8080"]
|
||||
Reference in New Issue
Block a user