Skip to content

Commit

Permalink
Add arm64 docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
d-rk authored and jmattheis committed Dec 28, 2020
1 parent 3454dcd commit 8a31fd1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,16 @@ build-docker-arm-7: require-version
-t gotify/server-arm7:$(shell echo $(VERSION) | cut -d '.' -f -2) .
rm ${DOCKER_DIR}gotify-app

build-docker: build-docker-amd64 build-docker-arm-7
build-docker-arm64: require-version
cp ${BUILD_DIR}/gotify-linux-arm64 ./docker/gotify-app
cd ${DOCKER_DIR} && \
docker build -f Dockerfile.arm64 \
-t gotify/server-arm64:latest \
-t gotify/server-arm64:${VERSION} \
-t gotify/server-arm64:$(shell echo $(VERSION) | cut -d '.' -f -2) .
rm ${DOCKER_DIR}gotify-app

build-docker: build-docker-amd64 build-docker-arm-7 build-docker-arm64

build-js:
(cd ui && yarn build)
Expand Down
5 changes: 5 additions & 0 deletions docker/Dockerfile.arm64
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM arm64v8/debian
WORKDIR /app
ADD gotify-app /app/
EXPOSE 80
ENTRYPOINT ["./gotify-app"]

0 comments on commit 8a31fd1

Please sign in to comment.