build & deploy with docker

This commit is contained in:
2024-12-14 16:34:28 +01:00
parent 16ddc45a17
commit 449b567057
51 changed files with 56 additions and 2 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
# Compile the hugo site
FROM ubuntu:latest AS builder
RUN apt-get update && apt-get install -y hugo
COPY ./hugo /app
RUN hugo -s /app
# Setup deployment
FROM nginx:alpine AS final
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
COPY --from=0 /var/www/rezepte /var/www