feat(base): Ubuntu git-core ppa (#49)

Co-authored-by: Jonathan Yu <jonathan.i.yu@gmail.com>
This commit is contained in:
G r e y 2021-02-18 14:46:22 -05:00 committed by GitHub
parent ea099c33b8
commit 4bec2c8cd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 20 deletions

View File

@ -1,30 +1,33 @@
FROM ubuntu:20.04
# Install baseline packages
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y \
build-essential \
git \
bash \
docker.io \
curl \
wget \
unzip \
htop \
man \
vim \
sudo \
systemd \
python3 \
python3-pip \
ca-certificates \
locales
RUN apt-get update && \
DEBIAN_FRONTEND="noninteractive" apt-get install -y \
bash \
build-essential \
ca-certificates \
curl \
docker.io \
htop \
locales \
man \
python3 \
python3-pip \
software-properties-common \
sudo \
systemd \
systemd-sysv \
unzip \
vim \
wget && \
# Install latest Git using their official PPA
add-apt-repository ppa:git-core/ppa && \
DEBIAN_FRONTEND="noninteractive" apt-get install -y git
# Enables Docker starting with systemd
RUN systemctl enable docker
# use systemd as the init
RUN ln -s /lib/systemd/systemd /sbin/init
# Add a user `coder` so that you're not developing as the `root` user
RUN adduser --gecos '' --disabled-password coder && \
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd