Skip to content
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" ]