docker-images/gitea-runner/Dockerfile

19 lines
580 B
Docker
Raw Normal View History

2023-03-27 20:48:50 +00:00
from ubuntu:latest
2023-03-27 20:35:12 +00:00
2023-03-27 21:19:37 +00:00
# Disable interactive mode
ARG DEBIAN_FRONTEND=noninteractive
2023-03-27 20:35:12 +00:00
# Update and install packages
2023-03-27 21:07:42 +00:00
RUN apt update && apt upgrade -y
RUN apt install -y git wget curl
2023-03-27 21:04:51 +00:00
RUN echo "Installed and updated packages"
2023-03-27 20:35:12 +00:00
# Install Docker
2023-03-27 21:19:37 +00:00
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