Skip to content

Commit 332971a

Browse files
FIX (image): Do not specify arch for image
1 parent 7bb057e commit 332971a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ ARG TARGETARCH
3232
# binary is compiled for the target architecture instead of downloading a
3333
# prebuilt binary which may have the wrong architecture (causes exec format
3434
# errors on ARM).
35-
RUN env GOBIN=/usr/local/bin GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH:-amd64} \
36-
go install github.com/pressly/goose/v3/cmd/goose@latest
35+
RUN GOBIN=/usr/local/bin GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH:-amd64} go install github.com/pressly/goose/v3/cmd/[email protected]
3736
RUN go install github.com/swaggo/swag/cmd/[email protected]
3837

3938
# Set working directory
@@ -64,7 +63,7 @@ RUN CGO_ENABLED=0 \
6463

6564

6665
# ========= RUNTIME =========
67-
FROM --platform=$TARGETPLATFORM debian:bookworm-slim
66+
FROM debian:bookworm-slim
6867

6968
# Add version metadata to runtime image
7069
ARG APP_VERSION=dev

0 commit comments

Comments
 (0)