Skip to content

Commit

Permalink
Update go to 1.11
Browse files Browse the repository at this point in the history
Ref: openfaas/faas#1291

Tested with local build on Linux. Image was able to be pulled
for armhf, which implies armhf is supported in this version too.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Aug 22, 2019
1 parent f81d056 commit 56f1b9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions template/go-armhf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM openfaas/classic-watchdog:0.15.4 as watchdog

FROM golang:1.10.8-alpine3.9 as builder
FROM golang:1.11-alpine3.10 as builder

# Allows you to add additional packages via build-arg
ARG ADDITIONAL_PACKAGE
Expand All @@ -19,7 +19,7 @@ RUN CGO_ENABLED=${CGO_ENABLED} GOOS=linux \
go build --ldflags "-s -w" -a -installsuffix cgo -o handler . && \
go test $(go list ./... | grep -v /vendor/) -cover

FROM alpine:3.9
FROM alpine:3.10
RUN apk --no-cache add \
ca-certificates

Expand All @@ -30,7 +30,6 @@ RUN mkdir -p /home/app
WORKDIR /home/app

COPY --from=builder /usr/bin/fwatchdog .

COPY --from=builder /go/src/handler/function/ .
COPY --from=builder /go/src/handler/handler .

Expand Down
4 changes: 2 additions & 2 deletions template/go/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM openfaas/classic-watchdog:0.15.4 as watchdog

FROM golang:1.10.8-alpine3.9 as builder
FROM golang:1.11-alpine3.10 as builder

# Allows you to add additional packages via build-arg
ARG ADDITIONAL_PACKAGE
Expand All @@ -19,7 +19,7 @@ RUN CGO_ENABLED=${CGO_ENABLED} GOOS=linux \
go build --ldflags "-s -w" -a -installsuffix cgo -o handler . && \
go test $(go list ./... | grep -v /vendor/) -cover

FROM alpine:3.9
FROM alpine:3.10
RUN apk --no-cache add \
ca-certificates

Expand Down

0 comments on commit 56f1b9d

Please sign in to comment.