nightingale1/Dockerfile

24 lines
452 B
Docker
Raw Normal View History

2020-03-23 13:46:52 +08:00
FROM golang AS builder
# RUN apk add --no-cache git gcc
2020-03-23 00:42:22 +08:00
WORKDIR /app
2020-03-23 00:05:53 +08:00
# comment this if using vendor
# ENV GOPROXY=https://mod.gokit.info
# COPY go.mod go.sum ./
# RUN go mod download
COPY . .
2020-03-23 14:41:30 +08:00
ENV GOPROXY=https://mod.gokit.info
2020-03-23 14:21:27 +08:00
RUN ./control build
2020-03-23 00:05:53 +08:00
2020-03-23 14:38:58 +08:00
FROM buildpack-deps:buster-curl
2020-03-23 00:05:53 +08:00
LABEL maintainer="llitfkitfk@gmail.com"
WORKDIR /app
2020-03-23 14:21:27 +08:00
COPY --from=builder /app/docker/etc /app/etc
2020-03-23 00:42:22 +08:00
COPY --from=builder /app/bin /usr/local/bin
2020-03-23 00:05:53 +08:00
2020-03-23 13:46:52 +08:00
2020-03-23 00:05:53 +08:00
# ENTRYPOINT []
# CMD []