upd.
This commit is contained in:
parent
7b17aae48b
commit
23bb1ef5ad
10
Dockerfile
10
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/
|
||||
|
|
Loading…
Reference in a new issue