removing arch from go build
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
# Start from the official Golang image for building
|
||||
ARG TARGETARCH=amd64
|
||||
FROM golang:1.25 AS builder
|
||||
FROM golang:1.22 AS builder
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
# Build statically for Linux and selected architecture
|
||||
RUN GOOS=linux GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -o haven-notify main.go
|
||||
# Build statically for Linux
|
||||
RUN GOOS=linux CGO_ENABLED=0 go build -o haven-notify main.go
|
||||
|
||||
# Use Alpine for running, with CA certificates for TLS
|
||||
FROM alpine:latest
|
||||
|
Reference in New Issue
Block a user