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
|
|
|
|
|
|
|
COPY . .
|
2020-03-24 22:30:37 +08:00
|
|
|
RUN ./control build docker
|
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-24 22:30:37 +08:00
|
|
|
COPY --from=builder /app/docker/scripts /app/scripts
|
|
|
|
COPY --from=builder /app/etc /app/etc
|
|
|
|
# Change default address (hard code)
|
|
|
|
RUN ./scripts/sed.sh
|
|
|
|
|
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 []
|