diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bc54402 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM klakegg/hugo:onbuild AS hugo + +FROM nginx +COPY --from=hugo ./target /usr/share/nginx/html diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..b184d98 --- /dev/null +++ b/docker-compose.yaml @@ -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