fix: Dockerfile cgo
This commit is contained in:
@@ -13,7 +13,7 @@ COPY . .
|
|||||||
# Build the application
|
# Build the application
|
||||||
# CGO_ENABLED=0 is important for a clean static build for Alpine
|
# CGO_ENABLED=0 is important for a clean static build for Alpine
|
||||||
# -o main specifies the output file name
|
# -o main specifies the output file name
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
|
RUN go build -o main .
|
||||||
|
|
||||||
# Stage 2: Create the final lightweight image
|
# Stage 2: Create the final lightweight image
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user