From 23bb1ef5ad9dd3e7e58072d7453d24d242708d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Mon, 19 Aug 2024 21:14:32 +0200 Subject: [PATCH] upd. --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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/