Skip to content

Commit 440b7f5

Browse files
committed
Update Dockerfile to use newer Alpine version
Alpine 3:11 -> 3.12 Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent b9ea939 commit 440b7f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM openfaas/classic-watchdog:0.18.10 as watchdog
22

3-
FROM golang:1.15-alpine as build
3+
FROM golang:1.13-alpine as build
44

55
ENV CGO_ENABLED=0
66
ENV GO111MODULE=on
@@ -10,9 +10,9 @@ COPY . .
1010

1111
RUN go test $(go list ./... | grep -v /vendor/) -cover
1212

13-
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o derek .
13+
RUN CGO_ENABLED=0 GOOS=linux go build -mod=vendor -a -installsuffix cgo -o derek .
1414

15-
FROM alpine:3.11 as ship
15+
FROM alpine:3.12 as ship
1616

1717
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
1818
RUN chmod +x /usr/bin/fwatchdog

0 commit comments

Comments
 (0)