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/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 201540f..70c934c 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,8 @@ New Unitoo website based on Jekyll 3. Build Jekyll `JEKYLL_BUILD=production bundle exec jekyll build` + + +## Build image + +`docker buildx build --platform linux/arm64,linux/amd64 -t unitoo/website --push .`