Pack the website into container

This commit is contained in:
mr-vercetti committed 2022-11-27 21:59:56 +01:00
1 parent 171988a9ff
commit e5699b6054
11 files changed
+29 -5

No files matched your search

+12
View 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