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 10, 2021
1 parent 064cec3 commit c2b4622
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.12-alpine as builder
FROM golang:1.17-alpine3.14 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/analyzer .
# 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.12-alpine
FROM golang:1.17-alpine3.14
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/analyzer/bin
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/exercism/go-analyzer

go 1.12
go 1.17

require (
github.com/logrusorgru/aurora v0.0.0-20181002194514-a7b3b318ed4e
Expand Down

0 comments on commit c2b4622

Please sign in to comment.