mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-09 08:57:37 +08:00
Add Dockerfile
This commit is contained in:
parent
fba8b3ee0c
commit
4488d3c041
1 changed files with 13 additions and 0 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM golang:1.9 AS build-env
|
||||
WORKDIR /go/src/github.com/StackExchange/dnscontrol
|
||||
ADD . .
|
||||
RUN go install .
|
||||
RUN dnscontrol version
|
||||
|
||||
FROM ubuntu:xenial
|
||||
COPY --from=build-env /go/bin/dnscontrol /usr/local/bin
|
||||
WORKDIR /dns
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y ca-certificates
|
||||
RUN dnscontrol version
|
||||
CMD dnscontrol
|
Loading…
Reference in a new issue