-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (25 loc) · 1.02 KB
/
Dockerfile
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:bionic
ENV PKG "kubectl jq helm kind make docker-ce-cli gomplate"
ENV PKG_UPDATE "true"
ENV PKG_KUBECTL_VERSION "v1.20.4"
ENV PKG_KIND_VERSION "0.10.0"
ENV USER "docker"
ENV DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update && apt-get install -y --no-install-recommends \
curl=7.58.0-2ubuntu3.13 \
ca-certificates=20210119~18.04.1 \
gnupg2=2.2.4-1ubuntu1.4 \
sudo=1.8.21p2-3ubuntu1.4 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN echo "deb https://download.docker.com/linux/ubuntu/ bionic stable" | tee /etc/apt/sources.list.d/docker.list && \
mkdir -p /etc/bash_completion.d && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -qq - && \
groupadd -g 2000 docker && \
useradd -m -u 2001 -g docker docker && \
echo "docker ALL=(ALL) NOPASSWD: ALL" | tee /etc/sudoers.d/docker
USER docker
WORKDIR /home/docker
# NOTE: Shorten link -> https://github.com/electrocucaracha/pkg-mgr_scripts
RUN curl -fsSL http://bit.ly/install_pkg | bash