add docker to ubuntu

This commit is contained in:
Julius Zeidler 2025-04-10 15:41:00 +02:00
parent 8bbd3e17aa
commit 038211615b

View file

@ -1,5 +1,9 @@
FROM ubuntu FROM ubuntu
RUN apt-get -y update && \ RUN apt-get -y update && \
apt-get install -y apt-transport-https ca-certificates curl software-properties-common && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && \
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" && \
apt-get -y install docker-ce && \
apt-get install -y curl diffutils jq bash git zsh docker nodejs npm yarn docker apt-get install -y curl diffutils jq bash git zsh docker nodejs npm yarn docker
CMD [ "zsh" ] CMD [ "zsh" ]