mirror of
https://github.com/mr-vercetti/mr.vercetti.cc.git
synced 2025-07-03 03:55:34 +02:00
Pack the website into container
This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
FROM alpine as builder
|
||||
|
||||
COPY ./website /home
|
||||
|
||||
WORKDIR /home/website
|
||||
RUN apk add zola --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ && \
|
||||
zola build
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY --from=builder /home/website/public /usr/share/nginx/html
|
||||
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
|
Reference in New Issue
Block a user