-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathContainerfile.dev
41 lines (38 loc) · 998 Bytes
/
Containerfile.dev
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
32
33
34
35
36
37
38
39
40
41
FROM docker.io/library/golang:1.22-bullseye
# To allow installing kubectl
#RUN mkdir /etc/apt/keyrings &&\
# curl -fsSLo /etc/apt/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg
# &&\
# echo "deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | tee /etc/apt/sources.list.d/kubernetes.list
RUN apt-get update -qy && \
apt-get install --no-install-recommends -qy \
ca-certificates \
conntrack \
curl \
docker.io \
gcc \
git \
iproute2 \
iptables \
iputils-ping \
libc-dev \
make \
net-tools \
psmisc \
python3 \
tcpdump \
traceroute \
yamllint \
&& \
apt-get clean
#
# Install go build tools, and cache go modules.
#
COPY ./hack/install-tools.sh /src/
COPY go.mod /src/
COPY go.sum /src/
RUN cd /src &&\
/bin/bash -x ./install-tools.sh &&\
go mod download &&\
cd / &&\
rm -rf /src