mirror of
https://github.com/openfaas/faas.git
synced 2025-06-22 23:03:24 +00:00
Upgrade to alpine:3.15 where possible
Upgrades OS for some base images, no expected issues. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
@ -26,7 +26,7 @@ RUN CGO_ENABLED=${CGO_ENABLED} GOOS=${TARGETOS} GOARCH=${TARGETARCH} go test -v
|
||||
RUN CGO_ENABLED=${CGO_ENABLED} GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
|
||||
--ldflags "-s -w" -a -installsuffix cgo -o handler .
|
||||
|
||||
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.14 as ship
|
||||
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.15 as ship
|
||||
# Add non-root user
|
||||
RUN addgroup -S app && adduser -S -g app app \
|
||||
&& mkdir -p /home/app \
|
||||
|
Reference in New Issue
Block a user