From 818a84fc33f19f08ebe2306839b29abc03a345eb Mon Sep 17 00:00:00 2001 From: Erik Grobecker Date: Tue, 17 Dec 2024 08:11:43 +0100 Subject: [PATCH] updated docker and docker-compose --- Dockerfile | 5 ++--- compose.yml | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 compose.yml diff --git a/Dockerfile b/Dockerfile index dbe8369..126dcc5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,9 @@ -FROM --platform=arm64 alpine:3.20.3 AS zola +FROM ghcr.io/getzola/zola:v0.19.2 as zola -RUN apk add zola COPY . /project WORKDIR /project RUN ["zola", "build"] -FROM --platform=arm64 ghcr.io/static-web-server/static-web-server:2 +FROM ghcr.io/static-web-server/static-web-server:2 WORKDIR / COPY --from=zola /project/public /public \ No newline at end of file diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..3273a4b --- /dev/null +++ b/compose.yml @@ -0,0 +1,5 @@ +services: + blog: + build: . + ports: + - 37189:8000 \ No newline at end of file