feat: add docker support
This commit is contained in:
parent
3b3dff707a
commit
fcb6bb33d9
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
FROM alpine:3.20 AS build
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN apk add --no-cache hugo=0.125.4-r3 && hugo --minify
|
||||||
|
|
||||||
|
FROM nginx:1.27.1 AS production
|
||||||
|
|
||||||
|
COPY --from=build /app/public /usr/share/nginx/html
|
6
docker-compose.yaml
Normal file
6
docker-compose.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
services:
|
||||||
|
web:
|
||||||
|
build: .
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- 80:80
|
Loading…
Reference in New Issue
Block a user