nightingale/Dockerfile

24 lines
453 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:21:27 +08:00
RUN ./control build
2020-03-23 00:05:53 +08:00
FROM alpine:3.10
LABEL maintainer="llitfkitfk@gmail.com"
2020-03-23 01:05:17 +08:00
RUN apk add --no-cache tzdata ca-certificates bash
2020-03-23 00:05:53 +08:00
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 []