Updated Dockerfile.
This commit is contained in:
parent
00c244787b
commit
ff13e81cb8
1 changed files with 39 additions and 0 deletions
|
@ -1 +1,40 @@
|
|||
Code samples & snippets coming soon!
|
||||
|
||||
#
|
||||
# Ubuntu
|
||||
#
|
||||
|
||||
# Pull base image.
|
||||
FROM ubuntu:22.04
|
||||
|
||||
# Install.
|
||||
RUN \
|
||||
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
|
||||
apt-get update && \
|
||||
apt-get -y upgrade && \
|
||||
apt-get install -y build-essential && \
|
||||
apt-get install -y software-properties-common && \
|
||||
apt-get install -y byobu curl git htop man unzip vim wget && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Add files.
|
||||
ADD root/.bashrc /root/.bashrc
|
||||
ADD root/.gitconfig /root/.gitconfig
|
||||
ADD root/.scripts /root/.scripts
|
||||
|
||||
# Set environment variables.
|
||||
ENV HOME /root
|
||||
|
||||
# Define working directory.
|
||||
WORKDIR /root
|
||||
|
||||
# Define default command.
|
||||
CMD ["bash"]
|
||||
|
||||
# Checking APT Cache
|
||||
|
||||
FROM ubuntu:22.04
|
||||
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
|
||||
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
||||
--mount=type=cache,target=/var/lib/apt,sharing=locked \
|
||||
apt update && apt-get --no-install-recommends install -y gcc
|
||||
|
|
Loading…
Reference in a new issue