diff --git a/Dockerfile b/Dockerfile index 828751c..208e066 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,8 @@ -FROM alpine:3.17 +FROM python:3.12-alpine AS build WORKDIR /srv -RUN apk add --no-cache python3 py3-pip make RUN pip3 install pelican markdown COPY . /srv/ -RUN pelican content -s pelicanconf.py -t theme +RUN pelican content/ -s pelicanconf.py -t theme -FROM nginx:1.22.1-alpine -WORKDIR /srv -COPY --from=0 /srv/output/ /usr/share/nginx/html/ +FROM nginx:1.27.1-alpine +COPY --from=build /srv/output/ /usr/share/nginx/html/