my base image for golang.
https://github.com/cnbattle/docker-go
FROM cnbattle/docker-go:builder as builder
WORKDIR /app
COPY . .
RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct
RUN make build
FROM cnbattle/docker-go:runner
RUN echo 'Asia/Shanghai' >/etc/timezone
WORKDIR /www
COPY --from=builder /app/.up.env /www/.env
COPY --from=builder /app/app /www/app
EXPOSE 8080
ENTRYPOINT ["/www/app","web"]
Content type
Image
Digest
sha256:2968f4b04…
Size
3.3 MB
Last updated
about 4 years ago
docker pull cnbattle/docker-go