Skip to content

ci: build a multi-arch main image #11668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from
Prev Previous commit
Next Next commit
set ARG TARGETARCH
  • Loading branch information
matifali committed Jan 17, 2024
commit e0d28a2a286580d305c161936bc06ffa9605b40c
6 changes: 3 additions & 3 deletions scripts/Dockerfile.multiarch
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# This is the multi-arch Dockerfile used for Coder. Since it's multi-arch and
# cross-compiled, it cannot have ANY "RUN" commands. All binaries are built
# using the go toolchain on the host and then copied into the build context manullay.
# This is the multi-arch Dockerfile used for Coder. All binaries are built
# using the go toolchain on the host and then copied into the build context.
ARG BASE_IMAGE
FROM $BASE_IMAGE

Expand All @@ -16,6 +15,7 @@ LABEL \


# The coder binary is available in the build context.
ARG TARGETARCH
COPY --chown=1000:1000 --chmod=755 coder_linux_${TARGETARCH} /opt/coder

ENTRYPOINT [ "/opt/coder", "server" ]