mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 08:25:03 +00:00
Update to Alpine 3.14 for base images
3.13 has vulnerabilities Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
parent
539f0a2c94
commit
a9a77f0eca
@ -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.13 as ship
|
||||
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.14 as ship
|
||||
# Add non-root user
|
||||
RUN addgroup -S app && adduser -S -g app app \
|
||||
&& mkdir -p /home/app \
|
||||
|
@ -47,7 +47,7 @@ RUN CGO_ENABLED=${CGO_ENABLED} GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build --
|
||||
-X github.com/openfaas/faas/gateway/types.Arch=${TARGETARCH}" \
|
||||
-a -installsuffix cgo -o gateway .
|
||||
|
||||
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.13 as ship
|
||||
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.14 as ship
|
||||
|
||||
LABEL org.label-schema.license="MIT" \
|
||||
org.label-schema.vcs-url="https://github.com/openfaas/faas" \
|
||||
|
@ -1,6 +1,6 @@
|
||||
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.1.4 as watchdog
|
||||
|
||||
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.13
|
||||
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.14
|
||||
|
||||
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
@ -1,6 +1,6 @@
|
||||
FROM openfaas/classic-watchdog:0.18.8 as watchdog
|
||||
|
||||
FROM alpine:3.13 as builder
|
||||
FROM alpine:3.14 as builder
|
||||
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
FROM openfaas/classic-watchdog:0.18.8 as watchdog
|
||||
|
||||
FROM alpine:3.13
|
||||
FROM alpine:3.14
|
||||
RUN apk --update add nodejs nodejs-npm
|
||||
|
||||
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
|
||||
|
@ -1,6 +1,6 @@
|
||||
FROM openfaas/classic-watchdog:0.18.8 as watchdog
|
||||
|
||||
FROM alpine:3.13
|
||||
FROM alpine:3.14
|
||||
RUN apk --update add nodejs nodejs-npm
|
||||
|
||||
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
|
||||
|
@ -10,7 +10,7 @@ WORKDIR /go/src/github.com/openfaas/faas/sample-functions/DockerHubStats
|
||||
COPY . /go/src/github.com/openfaas/faas/sample-functions/DockerHubStats
|
||||
RUN set -ex && apk add make && make install
|
||||
|
||||
FROM alpine:3.13
|
||||
FROM alpine:3.14
|
||||
|
||||
# Needed to reach the hub
|
||||
RUN apk --no-cache add ca-certificates
|
||||
|
@ -13,7 +13,7 @@ COPY . /go/src/github.com/openfaas/faas/sample-functions/DockerHubStats
|
||||
|
||||
RUN make install
|
||||
|
||||
FROM alpine:3.13
|
||||
FROM alpine:3.14
|
||||
|
||||
# Needed to reach the hub
|
||||
RUN apk --no-cache add ca-certificates
|
||||
|
@ -13,7 +13,7 @@ COPY vendor vendor
|
||||
|
||||
RUN go install
|
||||
|
||||
FROM alpine:3.13
|
||||
FROM alpine:3.14
|
||||
|
||||
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
@ -1,6 +1,6 @@
|
||||
FROM openfaas/classic-watchdog:0.18.8 as watchdog
|
||||
|
||||
FROM alpine:3.13
|
||||
FROM alpine:3.14
|
||||
|
||||
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
@ -1,6 +1,6 @@
|
||||
FROM openfaas/classic-watchdog:0.18.8 as watchdog
|
||||
|
||||
FROM arm32v6/alpine:3.13
|
||||
FROM arm32v6/alpine:3.14
|
||||
|
||||
RUN apk --no-cache add imagemagick
|
||||
|
||||
|
@ -12,7 +12,7 @@ COPY handler.go .
|
||||
|
||||
RUN go install
|
||||
|
||||
FROM alpine:3.13
|
||||
FROM alpine:3.14
|
||||
|
||||
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
@ -1,6 +1,6 @@
|
||||
FROM openfaas/classic-watchdog:0.18.1 as watchdog
|
||||
|
||||
FROM alpine:3.13
|
||||
FROM alpine:3.14
|
||||
|
||||
RUN mkdir -p /home/app
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user