You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
493 B

FROM golang AS build
WORKDIR /opt/build
COPY . /opt/build
RUN go get -v && go build -v -o gopherhole .
FROM ubuntu
COPY --from=build /opt/build/gopherhole /opt/gopherhole/gopherhole
COPY ./config.json /opt/gopherhole/config.json
RUN apt-get update && apt-get install -y ca-certificates && apt-get clean
WORKDIR /opt/gopherhole
EXPOSE 53/udp 53/tcp 80/tcp
ENTRYPOINT ["/opt/gopherhole/gopherhole"]
CMD ["-bind-http=", "-bind-dns="]