Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@ WORKDIR /app
# set build arg for platform
ARG TARGETPLATFORM

# copy all binaries into image
COPY cdk-server-amd64 .
COPY cdk-server-arm64 .

# select binary according to platform
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then cp cdk-server-amd64 cdk-server; elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then cp cdk-server-arm64 cdk-server; fi
# copy the appropriate binary based on platform
COPY cdk-server-${TARGETPLATFORM#linux/} ./cdk-server

# copy docs and support files
COPY docs ./docs
Expand Down