Pin Alpine Linux patch version

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis (OpenFaaS Ltd) 2022-05-06 17:43:02 +01:00
parent b097c87b80
commit 0d7ace76b6
13 changed files with 13 additions and 13 deletions

View File

@ -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 \ RUN CGO_ENABLED=${CGO_ENABLED} GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
--ldflags "-s -w" -a -installsuffix cgo -o handler . --ldflags "-s -w" -a -installsuffix cgo -o handler .
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.15 as ship FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.15.4 as ship
# Add non-root user # Add non-root user
RUN addgroup -S app && adduser -S -g app app \ RUN addgroup -S app && adduser -S -g app app \
&& mkdir -p /home/app \ && mkdir -p /home/app \

View File

@ -44,7 +44,7 @@ RUN CGO_ENABLED=${CGO_ENABLED} GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build --
-X github.com/openfaas/faas/gateway/types.Arch=${TARGETARCH}" \ -X github.com/openfaas/faas/gateway/types.Arch=${TARGETARCH}" \
-a -installsuffix cgo -o gateway . -a -installsuffix cgo -o gateway .
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.15 as ship FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.15.4 as ship
LABEL org.label-schema.license="MIT" \ LABEL org.label-schema.license="MIT" \
org.label-schema.vcs-url="https://github.com/openfaas/faas" \ org.label-schema.vcs-url="https://github.com/openfaas/faas" \

View File

@ -1,6 +1,6 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.1.4 as watchdog FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.1.4 as watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.15 FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.15.4
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog RUN chmod +x /usr/bin/fwatchdog

View File

@ -1,6 +1,6 @@
FROM ghcr.io/openfaas/classic-watchdog:0.2.0 as watchdog FROM ghcr.io/openfaas/classic-watchdog:0.2.0 as watchdog
FROM alpine:3.15 as builder FROM alpine:3.15.4 as builder
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog RUN chmod +x /usr/bin/fwatchdog

View File

@ -1,6 +1,6 @@
FROM ghcr.io/openfaas/classic-watchdog:0.2.0 as watchdog FROM ghcr.io/openfaas/classic-watchdog:0.2.0 as watchdog
FROM alpine:3.15 as ship FROM alpine:3.15.4 as ship
RUN apk --update add nodejs npm RUN apk --update add nodejs npm
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog

View File

@ -1,6 +1,6 @@
FROM ghcr.io/openfaas/classic-watchdog:0.2.0 as watchdog FROM ghcr.io/openfaas/classic-watchdog:0.2.0 as watchdog
FROM alpine:3.15 as ship FROM alpine:3.15.4 as ship
RUN apk --update add nodejs npm RUN apk --update add nodejs npm
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog

View File

@ -10,7 +10,7 @@ WORKDIR /go/src/github.com/openfaas/faas/sample-functions/DockerHubStats
COPY . /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 RUN set -ex && apk add make && make install
FROM alpine:3.15 as ship FROM alpine:3.15.4 as ship
# Needed to reach the hub # Needed to reach the hub
RUN apk --no-cache add ca-certificates RUN apk --no-cache add ca-certificates

View File

@ -13,7 +13,7 @@ COPY . /go/src/github.com/openfaas/faas/sample-functions/DockerHubStats
RUN make install RUN make install
FROM alpine:3.15 as ship FROM alpine:3.15.4 as ship
# Needed to reach the hub # Needed to reach the hub
RUN apk --no-cache add ca-certificates RUN apk --no-cache add ca-certificates

View File

@ -13,7 +13,7 @@ COPY vendor vendor
RUN go install RUN go install
FROM alpine:3.15 as ship FROM alpine:3.15.4 as ship
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog RUN chmod +x /usr/bin/fwatchdog

View File

@ -1,6 +1,6 @@
FROM ghcr.io/openfaas/classic-watchdog:0.2.0 as watchdog FROM ghcr.io/openfaas/classic-watchdog:0.2.0 as watchdog
FROM alpine:3.15 as ship FROM alpine:3.15.4 as ship
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog RUN chmod +x /usr/bin/fwatchdog

View File

@ -1,6 +1,6 @@
FROM ghcr.io/openfaas/classic-watchdog:0.2.0 as watchdog FROM ghcr.io/openfaas/classic-watchdog:0.2.0 as watchdog
FROM arm32v6/alpine:3.15 FROM arm32v6/alpine:3.15.4
RUN apk --no-cache add imagemagick RUN apk --no-cache add imagemagick

View File

@ -12,7 +12,7 @@ COPY handler.go .
RUN go install RUN go install
FROM alpine:3.15 as ship FROM alpine:3.15.4 as ship
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog RUN chmod +x /usr/bin/fwatchdog

View File

@ -1,6 +1,6 @@
FROM ghcr.io/openfaas/classic-watchdog:0.2.0 as watchdog FROM ghcr.io/openfaas/classic-watchdog:0.2.0 as watchdog
FROM alpine:3.15 as ship FROM alpine:3.15.4 as ship
RUN mkdir -p /home/app RUN mkdir -p /home/app