Merge pull request #1444 from c9s/feature/upgrade-go-1.20

FEATURE: upgrade to go 1.20
This commit is contained in:
c9s 2023-12-08 16:51:04 +08:00 committed by GitHub
commit e303184000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# First stage container
FROM golang:1.18.10-alpine3.17 AS builder
FROM golang:1.20-alpine3.18 AS builder
RUN apk add --no-cache git ca-certificates gcc musl-dev libc-dev pkgconfig
# gcc is for github.com/mattn/go-sqlite3
# ADD . $GOPATH/src/github.com/c9s/bbgo
@ -18,7 +18,7 @@ RUN go get github.com/mattn/go-sqlite3
RUN go build -o $GOPATH_ORIG/bin/bbgo ./cmd/bbgo
# Second stage container
FROM alpine:3.17
FROM alpine:3.18
# Create the default user 'bbgo' and assign to env 'USER'
ENV USER=bbgo

2
go.mod
View File

@ -2,7 +2,7 @@
module github.com/c9s/bbgo
go 1.18
go 1.20
require (
github.com/DATA-DOG/go-sqlmock v1.5.0