upgrade golang sdk for docker image

This commit is contained in:
c9s 2023-02-25 02:56:08 +08:00
parent 98739cc8a1
commit 6f30b4551c
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

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