go-ddns-svc/Dockerfile
2019-05-03 22:05:47 +08:00

13 lines
331 B
Docker

FROM golang:1.12-alpine as builder
WORKDIR /data
COPY . .
RUN apk add --no-cache make git ca-certificates \
make
FROM alpine:latest
RUN apk add --no-cache ca-certificates
WORKDIR /data
COPY --from=builder /data/ddns-svc /usr/bin
COPY config.default.yml config.yml
EXPOSE 10230
CMD ["/usr/bin/ddns-svc", "-f", "/data/config.yml"]