nightingale/Dockerfile

22 lines
415 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
COPY . .
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
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 []