change build platform to arm64

This commit is contained in:
2025-03-26 22:38:39 +01:00
parent f6cf715b3a
commit 401ac01ba2
2 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ ENV GOARCH=amd64
WORKDIR /goose.git
RUN git clone https://github.com/pressly/goose.git .
RUN go build -tags='no_clickhouse no_libsql no_mssql no_mysql no_sqlite3 no_vertica no_ydb' \
RUN GOARCH=arm64 go build -tags='no_clickhouse no_libsql no_mssql no_mysql no_sqlite3 no_vertica no_ydb' \
-o goose ./cmd/goose
# Build app
@@ -25,7 +25,7 @@ COPY ./src/internal ./internal
COPY ./src/web ./web
# Build the application
RUN go build -o main cmd/frontend/*
RUN GOARCH=arm64 go build -o main cmd/frontend/*
# --- Stage 3: Run the application ---