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
|
RUN pip install mkdocs
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . /app
|
COPY . /app
|
||||||
@@ -6,12 +6,7 @@ ENV SITE_DIR=/app/site
|
|||||||
RUN mkdocs build -d $SITE_DIR
|
RUN mkdocs build -d $SITE_DIR
|
||||||
|
|
||||||
|
|
||||||
FROM git.fjla.uk/fred.boniface/web-deploy:0.0.2 as compressor
|
FROM caddy:alpine
|
||||||
COPY --from=builder /app/site/ /deploy/in/
|
COPY --from=builder /app/site /srv
|
||||||
RUN node /app/process.js
|
EXPOSE 8080
|
||||||
|
CMD ["caddy", "file-server", "--listen", ":8080"]
|
||||||
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
|
|
||||||
Reference in New Issue
Block a user