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