This commit is contained in:
@ -7,9 +7,9 @@ WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
# Build the Go binary statically
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o weewoowebhook /app/cmd/wee_woo_webhook/main.go
|
||||
RUN go build -o weewoowebhook /app/cmd/wee_woo_webhook/main.go
|
||||
|
||||
FROM scratch
|
||||
FROM alpine
|
||||
|
||||
# Copy statically built binary from the builder
|
||||
COPY --from=builder /app/weewoowebhook /weewoowebhook
|
||||
|
||||
Reference in New Issue
Block a user