go-ddns-svc/Dockerfile

13 lines
334 B
Docker
Raw Normal View History

2019-05-03 14:03:55 +00:00
FROM golang:1.12-alpine as builder
WORKDIR /data
COPY . .
2019-05-03 14:10:37 +00:00
RUN apk add --no-cache make git ca-certificates && \
2019-05-03 14:03:55 +00:00
make
FROM alpine:latest
RUN apk add --no-cache ca-certificates
WORKDIR /data
2019-05-03 14:05:47 +00:00
COPY --from=builder /data/ddns-svc /usr/bin
2019-05-03 14:03:55 +00:00
COPY config.default.yml config.yml
EXPOSE 10230
CMD ["/usr/bin/ddns-svc", "-f", "/data/config.yml"]