docker: bump to Go 1.14 ()

pull/6078/head
ᴜɴᴋɴᴡᴏɴ 2020-04-07 16:00:12 +08:00 committed by GitHub
parent cac1054acb
commit 6a096811ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -1,16 +1,16 @@
FROM golang:alpine3.10 AS binarybuilder
FROM golang:alpine3.11 AS binarybuilder
RUN apk --no-cache --no-progress add --virtual \
build-deps \
build-base \
git \
linux-pam-dev
WORKDIR /go/src/github.com/gogs/gogs
WORKDIR /gogs.io/gogs
COPY . .
RUN make build-no-gen TAGS="sqlite cert pam"
RUN make build-no-gen TAGS="cert pam"
FROM alpine:3.10
ADD https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64 /usr/sbin/gosu
FROM alpine:3.11
ADD https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64 /usr/sbin/gosu
RUN chmod +x /usr/sbin/gosu \
&& echo http://dl-2.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories \
&& apk --no-cache --no-progress add \
@ -33,7 +33,7 @@ COPY docker/nsswitch.conf /etc/nsswitch.conf
WORKDIR /app/gogs
COPY docker ./docker
COPY --from=binarybuilder /go/src/github.com/gogs/gogs/gogs .
COPY --from=binarybuilder /gogs.io/gogs/gogs .
RUN ./docker/finalize.sh