Bumped npm build config issues
This commit is contained in:
+3
-3
@@ -21,16 +21,16 @@ RUN go get -v
|
||||
# From November 2022, CGO is enabled due to packages
|
||||
# that we use requiring it. This is a temporary fix
|
||||
# and makes us HAVE to install libc compatibility packages farther down.
|
||||
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o webapp .
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o webapp .
|
||||
|
||||
# Certificate build - gets required certs
|
||||
FROM alpine:latest as certs
|
||||
RUN apk --update add ca-certificates
|
||||
#FROM alpine:latest as certs
|
||||
|
||||
# Sets up the final image
|
||||
FROM alpine:3.17.0
|
||||
|
||||
# FIXME: Install cgo because CGO_ENABLED=1 during build
|
||||
RUN apk add --update ca-certificates
|
||||
RUN apk add --no-cache libc6-compat
|
||||
RUN apk add --no-cache libstdc++
|
||||
|
||||
|
||||
Reference in New Issue
Block a user