remove platform dependency
This commit is contained in:
parent
c3d882f4fd
commit
742ca53c1d
|
|
@ -8,8 +8,10 @@ RUN go mod download
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build with CGO enabled for sqlite
|
# Build native for the host architecture (ARM64 on Hetzner)
|
||||||
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o fitness-app ./main.go
|
RUN CGO_ENABLED=1 go build -o fitness-app ./main.go
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
FROM debian:bookworm-slim
|
FROM debian:bookworm-slim
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue