Skip to content

Commit

Permalink
Prepare for multi-platform docker builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalloc committed Sep 11, 2021
1 parent 4d22434 commit 0836429
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM scratch
COPY artifacts/build/release/linux/amd64/echo-server /bin/echo-server
ARG TARGETPLATFORM
COPY artifacts/build/release/$TARGETPLATFORM/echo-server /bin/echo-server
ENV PORT 8080
EXPOSE 8080
ENTRYPOINT ["/bin/echo-server"]
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
DOCKER_REPO = jmalloc/echo-server
DOCKER_PLATFORMS += linux/amd64
DOCKER_PLATFORMS += linux/arm64

-include .makefiles/Makefile
-include .makefiles/pkg/go/v1/Makefile
Expand Down

0 comments on commit 0836429

Please sign in to comment.