diff --git a/dockerfile b/dockerfile index fe6a04f..03d0444 100644 --- a/dockerfile +++ b/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"] \ No newline at end of file