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 WORKDIR /goose.git
RUN git clone https://github.com/pressly/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 -o goose ./cmd/goose
# Build app # Build app
@@ -25,7 +25,7 @@ COPY ./src/internal ./internal
COPY ./src/web ./web COPY ./src/web ./web
# Build the application # Build the application
RUN go build -o main cmd/frontend/* RUN GOARCH=arm64 go build -o main cmd/frontend/*
# --- Stage 3: Run the application --- # --- Stage 3: Run the application ---

View File

@@ -27,4 +27,4 @@ docker-run: docker-build
--rm -p 8080:8080 git.kohout-dev.de/crowsnest/crowsnest:latest --rm -p 8080:8080 git.kohout-dev.de/crowsnest/crowsnest:latest
docker-build: docker-build:
docker build --platform linux/amd64 -t git.kohout-dev.de/crowsnest/crowsnest:latest . docker build --platform linux/arm64 -t git.kohout-dev.de/crowsnest/crowsnest:latest .