mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 08:15:15 +00:00
Merge pull request #1444 from c9s/feature/upgrade-go-1.20
FEATURE: upgrade to go 1.20
This commit is contained in:
commit
e303184000
|
@ -1,5 +1,5 @@
|
||||||
# First stage container
|
# 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
|
RUN apk add --no-cache git ca-certificates gcc musl-dev libc-dev pkgconfig
|
||||||
# gcc is for github.com/mattn/go-sqlite3
|
# gcc is for github.com/mattn/go-sqlite3
|
||||||
# ADD . $GOPATH/src/github.com/c9s/bbgo
|
# 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
|
RUN go build -o $GOPATH_ORIG/bin/bbgo ./cmd/bbgo
|
||||||
|
|
||||||
# Second stage container
|
# Second stage container
|
||||||
FROM alpine:3.17
|
FROM alpine:3.18
|
||||||
|
|
||||||
# Create the default user 'bbgo' and assign to env 'USER'
|
# Create the default user 'bbgo' and assign to env 'USER'
|
||||||
ENV USER=bbgo
|
ENV USER=bbgo
|
||||||
|
|
Loading…
Reference in New Issue
Block a user