enable cgo
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ FROM golang:1.21 AS builder
|
||||
COPY / /app
|
||||
|
||||
WORKDIR /app/cmd
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o main
|
||||
RUN CGO_ENABLED=1 GOOS=linux go build -o main
|
||||
|
||||
FROM alpine:latest AS production
|
||||
WORKDIR /
|
||||
|
||||
Reference in New Issue
Block a user