Skip to content

Commit

Permalink
Update to Go 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerfcsantos committed Nov 9, 2021
1 parent eaaab6d commit deb2ffd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.14-alpine as builder
FROM golang:1.17-alpine as builder

# Install SSL ca certificates
RUN apk update && apk add git && apk add ca-certificates
Expand Down Expand Up @@ -27,7 +27,7 @@ RUN GOOS=linux GOARCH=amd64 go build --tags=build -o /go/bin/representer .
# Build a minimal and secured container
# The ast parser needs Go installed for import statements.
# Therefore, unfortunately we cannot build from scratch as we would normally do with Go.
FROM golang:1.14-alpine
FROM golang:1.17-alpine
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /etc/passwd /etc/passwd
COPY --from=builder /go/bin /opt/representer/bin
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/exercism/go-representer

go 1.14
go 1.17

0 comments on commit deb2ffd

Please sign in to comment.