This commit is contained in:
Lieuwe Leene 2022-10-29 12:07:29 +02:00
parent 5d8bfaf041
commit edbeb46280
2 changed files with 21 additions and 0 deletions

4
Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM klakegg/hugo:onbuild AS hugo
FROM nginx
COPY --from=hugo ./target /usr/share/nginx/html

17
docker-compose.yaml Normal file
View File

@ -0,0 +1,17 @@
version: "3.5"
services:
blog:
container_name: personal-blog
build:
context: "."
args:
HUGO_ENV_ARG: "production"
HUGO_CMD: "-s /src/personal-page"
client:
image: nginx
ports:
- 8000:80
volumes:
- ./src:/usr/share/nginx/html