We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 276c15e commit 8f214a8Copy full SHA for 8f214a8
Dockerfile
@@ -1,19 +1,20 @@
1
-FROM golang:latest as builder
+FROM golang:1.14.1 as builder
2
RUN mkdir /build
3
-ADD api/* /build/
+COPY api/* /build/
4
WORKDIR /build
5
RUN go get -d -v ./
6
RUN go build -o dyndns-api .
7
8
FROM debian:stretch
9
ARG DEBIAN_FRONTEND=noninteractive
10
-RUN apt update -qq && \
11
- apt install -q -y bind9 dnsutils -qq && \
12
- apt-get clean
+RUN apt-get update -qq && \
+ apt-get install -q -y bind9=1:9.10.3.dfsg.P4-12.3+deb9u6 dnsutils=1:9.10.3.dfsg.P4-12.3+deb9u6 -qq --no-install-recommends && \
+ apt-get clean && \
13
+ rm -rf /var/lib/apt/lists/*
14
15
COPY --from=builder /build/dyndns-api /root/
16
COPY ./setup.sh /root/setup.sh
17
RUN chmod +x /root/setup.sh
18
19
EXPOSE 53 8080
-ENTRYPOINT ["/root/setup.sh"]
20
+ENTRYPOINT ["/root/setup.sh"]
0 commit comments