feat: add docker support

This commit is contained in:
Mariano Riefolo 2024-09-19 14:23:20 +02:00
parent f29dd1123c
commit 056bf47de9
2 changed files with 17 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM alpine:3.20 AS build
WORKDIR /app
COPY . .
RUN apk add --no-cache hugo=0.125.4-r3
CMD ["hugo"]
FROM nginx:1.21.3-alpine AS production
COPY --from=build /app/public /usr/share/nginx/html

6
docker-compose.yaml Normal file
View File

@ -0,0 +1,6 @@
services:
web:
build: .
restart: unless-stopped
ports:
- 80:80