From edbeb46280e5577f34cc188d16de58424cb96132 Mon Sep 17 00:00:00 2001 From: Lieuwe Leene Date: Sat, 29 Oct 2022 12:07:29 +0200 Subject: [PATCH] WIP --- Dockerfile | 4 ++++ docker-compose.yaml | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yaml 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