From 5d22e7186748174b27e27eb23ae690a66fbeca2a Mon Sep 17 00:00:00 2001 From: Pavel Dmitriev Date: Thu, 17 Aug 2023 17:32:27 +0300 Subject: [PATCH] updated to apline --- Dockerfile | 15 ++------------- Dockerfile.X | 13 +++++++++++++ 2 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 Dockerfile.X diff --git a/Dockerfile b/Dockerfile index 9299f44..5ba87c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,2 @@ -#Download base image ubuntu 20.04 -FROM ubuntu:20.04 - -#Configure tz-data -ENV TZ=Europe/Moscow -RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone - -# Update Ubuntu Software repository -RUN apt-get -qy update -RUN apt install -qy python3 python3-pip software-properties-common git ansible -RUN pip install ansible-lint==4.0.0 - -CMD ["/bin/bash"] +FROM alpine +RUN apk add --no-cache ansible cdrkit ansible-lint \ No newline at end of file diff --git a/Dockerfile.X b/Dockerfile.X new file mode 100644 index 0000000..85063d5 --- /dev/null +++ b/Dockerfile.X @@ -0,0 +1,13 @@ +#Download base image ubuntu 20.04 +FROM ubuntu:20.04 + +#Configure tz-data +ENV TZ=Europe/Moscow +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone + +# Update Ubuntu Software repository +RUN apt-get -qy update \ + && apt install -qy python3 python3-pip software-properties-common git ansible \ + && pip install ansible-lint==4.0.0 + +CMD ["/bin/bash"]