feat(base): Ubuntu git-core ppa (#49)
Co-authored-by: Jonathan Yu <jonathan.i.yu@gmail.com>
This commit is contained in:
parent
ea099c33b8
commit
4bec2c8cd7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue