forked from pneymrl2f/nightingale
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
452 B
24 lines
452 B
FROM golang AS builder
|
|
# RUN apk add --no-cache git gcc
|
|
WORKDIR /app
|
|
|
|
# comment this if using vendor
|
|
# ENV GOPROXY=https://mod.gokit.info
|
|
# COPY go.mod go.sum ./
|
|
# RUN go mod download
|
|
|
|
COPY . .
|
|
ENV GOPROXY=https://mod.gokit.info
|
|
RUN ./control build
|
|
|
|
FROM buildpack-deps:buster-curl
|
|
LABEL maintainer="llitfkitfk@gmail.com"
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /app/docker/etc /app/etc
|
|
COPY --from=builder /app/bin /usr/local/bin
|
|
|
|
|
|
# ENTRYPOINT []
|
|
# CMD [] |