From 775d070f3b008100a0f172292a678f67370385fd Mon Sep 17 00:00:00 2001 From: Claudio Maradonna Date: Tue, 26 Dec 2023 08:29:18 +0100 Subject: [PATCH 1/2] better Dockerfile --- Dockerfile | 3 +++ README.md | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4aea15f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM ghcr.io/static-web-server/static-web-server:2-alpine +WORKDIR / +COPY _site /public diff --git a/README.md b/README.md index 201540f..43841de 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,10 @@ New Unitoo website based on Jekyll 3. Build Jekyll `JEKYLL_BUILD=production bundle exec jekyll build` + + +## Build image + +1. `docker build -t unitoo/website .` + +2. `docker push unitoo/website` -- 2.45.2 From 89906aa9da5ae7422705f4d0f0f79594f8f8f495 Mon Sep 17 00:00:00 2001 From: Claudio Maradonna Date: Tue, 26 Dec 2023 08:48:25 +0100 Subject: [PATCH 2/2] update README; update Makefile --- Makefile | 5 +++-- README.md | 4 +--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 2a2d7d5..3866e0f 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ prod_build: - python3 tag-generator.py - JEKYLL_BUILD=production bundle exec jekyll build + python3 tag-generator.py + JEKYLL_BUILD=production bundle exec jekyll build + docker buildx build --platform linux/arm64,linux/amd64 -t unitoo/website --push . diff --git a/README.md b/README.md index 43841de..70c934c 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,4 @@ New Unitoo website based on Jekyll ## Build image -1. `docker build -t unitoo/website .` - -2. `docker push unitoo/website` +`docker buildx build --platform linux/arm64,linux/amd64 -t unitoo/website --push .` -- 2.45.2