19 lines
580 B
Docker
19 lines
580 B
Docker
from ubuntu:latest
|
|
|
|
# Disable interactive mode
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Update and install packages
|
|
RUN apt update && apt upgrade -y
|
|
RUN apt install -y git wget curl
|
|
RUN echo "Installed and updated packages"
|
|
|
|
# Install Docker
|
|
RUN wget -q -O /tmp/docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-20.10.23.tgz \
|
|
&& tar --extract --file /tmp/docker.tgz --directory /usr/bin --strip-components 1 --no-same-owner docker/docker \
|
|
&& rm -rf /tmp/*
|
|
RUN echo "Installed Docker"
|
|
|
|
# Clean up apt
|
|
RUN rm -rf /var/lib/apt/lists/*
|
|
RUN apt clean |