Skip to content

Commit

Permalink
ci image dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
goastler committed Aug 14, 2024
1 parent 383c73f commit d95e3ec
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docker/ci.dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]

0 comments on commit d95e3ec

Please sign in to comment.