change build platform to arm64
This commit is contained in:
@@ -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 ---
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -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 .
|
||||||
|
|||||||
Reference in New Issue
Block a user