From 3222a0628362beb3368a23cefd546ce18e098379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sat, 7 Sep 2024 12:30:28 +0100 Subject: [PATCH] docker/Dockerfile revision --- .gitignore | 1 + docker/Dockerfile | 38 +++++++++++++++++++------------------- 2 files changed, 20 insertions(+), 19 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..71f0ad8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +**.local \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile index 5ef487a..6eb0aab 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,25 +1,25 @@ FROM lscr.io/linuxserver/code-server:latest -RUN apt-get update -y + +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update -y + +#curl +RUN apt-get install curl -y + +#docker +RUN curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh -RUN apt-get update -y \ - && apt install -y software-properties-common ca-certificates curl software-properties-common \ - && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \ - && add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" \ - && add-apt-repository --yes --update ppa:ansible/ansible \ - && apt-get update -y \ - && apt-get install -y python3 \ - && apt-get install -y python3-pip \ - && apt-get install -y ansible \ - && apt-get install -y docker-ce - RUN pip3 install ansible-lint - #--break-system-packages - #RUN pip3 install ansible-dev-tools --break-system-packages +#openssh client +RUN apt-get install -y openssh-client + +#python3 +RUN apt-get install -y gcc python3-dev +RUN apt-get install python3-pip -y - - - - # && apt-get install -y ansible \ - # && apt-get install -y docker-ce \ +#ansible +RUN rm /usr/lib/python*/EXTERNALLY-MANAGED +RUN pip3 install ansible +RUN pip3 install ansible-dev-tools && pip3 install ansible-runner && pip3 install ansible-lint