changed dockerfile to arm64
This commit is contained in:
parent
5e4e21009b
commit
56b5292d4c
3 changed files with 15 additions and 2 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
FROM --platform=arm64 ghcr.io/getzola/zola:v0.19.2 AS zola
|
||||||
|
|
||||||
|
COPY . /project
|
||||||
|
WORKDIR /project
|
||||||
|
RUN ["zola", "build"]
|
||||||
|
|
||||||
|
FROM --platform=arm64 ghcr.io/static-web-server/static-web-server:2
|
||||||
|
WORKDIR /
|
||||||
|
COPY --from=zola /project/public /public
|
5
justfile
5
justfile
|
@ -1,5 +1,5 @@
|
||||||
# use PowerShell instead of sh:
|
# use PowerShell instead of sh:
|
||||||
#set shell := ["powershell.exe", "-c"]
|
set shell := ["powershell.exe", "-c"]
|
||||||
|
|
||||||
|
|
||||||
# view the blog as it would be published in a browser
|
# view the blog as it would be published in a browser
|
||||||
|
@ -9,3 +9,6 @@ view:
|
||||||
# view the blog with drafts in a browser
|
# view the blog with drafts in a browser
|
||||||
view-drafts:
|
view-drafts:
|
||||||
zola serve --drafts -f
|
zola serve --drafts -f
|
||||||
|
|
||||||
|
build-con:
|
||||||
|
docker build --platform linux/amd64,linux/arm64 -t git.grobecker.me/erik/blog:latest --push .
|
|
@ -1,7 +1,8 @@
|
||||||
providers = ["...", "staticfile"]
|
providers = ["...", "staticfile"]
|
||||||
|
|
||||||
[phases.setup]
|
[phases.setup]
|
||||||
nixPkgs = ["zola"]
|
nixPkgs = ["cargo-binstall", "cargo"]
|
||||||
|
cmds = ["cargo binstall https://github.com/getzola/zola.git"]
|
||||||
|
|
||||||
[phases.build]
|
[phases.build]
|
||||||
cmds = ["zola build"]
|
cmds = ["zola build"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue