Skip to content

Commit

Permalink
Update to Go 1.20 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerfcsantos authored Mar 5, 2023
1 parent 103b0b4 commit 8560d72
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.18-alpine3.15 as builder
FROM golang:1.20.1-alpine3.17 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.18-alpine3.15
FROM golang:1.20.1-alpine3.17
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.18
go 1.20

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

0 comments on commit 8560d72

Please sign in to comment.