From d95e3ec5fed3a9af711e04dc050f603930bb94f5 Mon Sep 17 00:00:00 2001 From: George Oastler Date: Wed, 14 Aug 2024 14:44:11 +0100 Subject: [PATCH] ci image dockerfile --- docker/ci.dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docker/ci.dockerfile diff --git a/docker/ci.dockerfile b/docker/ci.dockerfile new file mode 100644 index 0000000000..785656742f --- /dev/null +++ b/docker/ci.dockerfile @@ -0,0 +1,25 @@ +FROM ubuntu:20.04 + +ENV DEBIAN_FRONTEND=noninteractive +SHELL [ "/bin/bash", "-euxo", "pipefail", "-c" ] + +VOLUME /repo +WORKDIR /repo + +# Install dependencies +RUN apt-get update && apt-get install -y --no-install-recommends gnupg git curl pipx npm python3.8 python3-pip python3.8-venv shellcheck yamllint debian-keyring debian-archive-keyring apt-transport-https + +RUN curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg +RUN curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list +RUN apt-get update +RUN apt install -y --no-install-recommends caddy + +RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash + +RUN pipx install ansible-core --force && pipx ensurepath --force + +RUN pip install ruff + +RUN rm -rf /var/lib/apt/lists/* + +ENTRYPOINT [ "/bin/bash", "-euxo", "pipefail" ]