Created
June 5, 2019 02:54
-
-
Save llitfkitfk/07e7608e82f45e507310c2157991e9c6 to your computer and use it in GitHub Desktop.
Revisions
-
llitfkitfk created this gist
Jun 5, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ FROM golang:alpine AS builder RUN apk add --no-cache git make WORKDIR /home/app ENV GOPROXY=https://mod.gokit.info COPY go.mod go.sum ./ RUN go mod download COPY . . RUN make build-linux FROM alpine:3.9 LABEL maintainer="llitfkitfk@gmail.com" RUN apk add --no-cache tzdata ca-certificates ENV TZ=Asia/Macao COPY --from=builder /home/app/bin /home/app/bin COPY docker-entrypoint.sh /usr/local/bin/ ENTRYPOINT ["docker-entrypoint.sh"] CMD []