-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 823 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM ubuntu/bind9:latest
ENV DEBIAN_FRONTEND=noninteractive
# Install Go + deps
RUN apt-get update && apt-get install -y \
curl git bash \
&& rm -rf /var/lib/apt/lists/*
# Install bind9utils
RUN apt-get update && apt-get install -y bind9utils && rm -rf /var/lib/apt/lists/*
# Install vim
RUN apt-get update && apt-get install -y vim && rm -rf /var/lib/apt/lists/*
# Install Go
ENV GOLANG_VERSION=1.24.3
RUN curl -OL https://go.dev/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz \
&& tar -C /usr/local -xzf go${GOLANG_VERSION}.linux-amd64.tar.gz \
&& rm go${GOLANG_VERSION}.linux-amd64.tar.gz
ENV PATH="/usr/local/go/bin:${PATH}"
# Install Air
RUN go install github.com/air-verse/air@latest
ENV PATH="/root/go/bin:${PATH}"
# Keep bind9 default entrypoint & cmd
EXPOSE 53/udp
EXPOSE 53/tcp
EXPOSE 8053/tcp