Dockerfile: bump docker image version to golang 1.17.6

This commit is contained in:
c9s 2022-01-26 14:10:50 +08:00
parent b2c4cd91a7
commit 10e4f3cbab

View File

@ -1,5 +1,5 @@
# First stage container # First stage container
FROM golang:1.15-alpine3.12 AS builder FROM golang:1.17.6-alpine3.15 AS builder
RUN apk add --no-cache git ca-certificates gcc libc-dev pkgconfig RUN apk add --no-cache git ca-certificates gcc 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
@ -16,7 +16,7 @@ ADD . .
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.12 FROM alpine:3.15
# RUN apk add --no-cache ca-certificates # RUN apk add --no-cache ca-certificates
RUN mkdir /app RUN mkdir /app