This commit is contained in:
Víðir Valberg Guðmundsson 2024-08-19 21:14:32 +02:00
parent 7b17aae48b
commit 23bb1ef5ad

View file

@ -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/