valberg.dk/Dockerfile

11 lines
257 B
Docker
Raw Normal View History

2023-05-16 19:39:43 +00:00
FROM alpine:3.17
WORKDIR /srv
RUN apk add --no-cache python3 py3-pip make
RUN pip3 install pelican markdown
COPY . /srv/
2023-05-16 20:08:31 +00:00
RUN pelican content -s pelicanconf.py -t theme
2023-05-16 19:39:43 +00:00
FROM nginx:1.22.1-alpine
WORKDIR /srv
COPY --from=0 /srv/output/ /usr/share/nginx/html/