Skip to content

Commit 56db693

Browse files
Fix AWS CLI arch (#24)
1 parent 45b31f8 commit 56db693

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.container/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ FROM --platform=$BUILDPLATFORM golang:1.24-bookworm AS build-stage
22

33
ARG TARGETOS
44
ARG TARGETARCH
5+
ARG APPVERSION
6+
ARG BUILDNUMBER
57

68
WORKDIR /app
79

@@ -12,6 +14,9 @@ RUN go mod verify && go mod vendor
1214
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags "-X github.com/SneaksAndData/nexus-core/pkg/buildmeta.AppVersion=$APPVERSION -X github.com/SneaksAndData/nexus-core/pkg/buildmeta.BuildNumber=$BUILDNUMBER" -o /app -v ./...
1315

1416
FROM --platform=$BUILDPLATFORM public.ecr.aws/amazonlinux/amazonlinux:2 AS aws-cli-stage
17+
18+
ARG TARGETARCH
19+
1520
RUN yum update -y && yum install -y unzip curl \
1621
&& cli_arch=$(test "$TARGETARCH" = "amd64" && echo "x86_64" || echo "aarch64") \
1722
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-$cli_arch.zip" -o "awscliv2.zip" \

0 commit comments

Comments
 (0)