add build file
This commit is contained in:
parent
e4205f68ab
commit
729fbc45a2
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
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=stage /data/ddns-svc /usr/bin
|
||||||
|
COPY config.default.yml config.yml
|
||||||
|
EXPOSE 10230
|
||||||
|
CMD ["/usr/bin/ddns-svc", "-f", "/data/config.yml"]
|
Loading…
Reference in New Issue
Block a user