| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=24.04 |
| ADD file:0ebb3dd98809cffc1b5ade76d8ccac01def087e7d7a84a84a33db4aa9090ac67 in / |
| CMD ["/bin/bash"] |
| ENV DEBIAN_FRONTEND=noninteractive |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends yamllint shellcheck lintian devscripts python3.12 python3.12-venv python3-pip nodejs npm build-essential && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c npm install -g markdownlint-cli # buildkit |
| ENV VIRTUAL_ENV=/opt/venv |
| ENV PATH=/opt/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN /bin/sh -c python3.12 -m venv $VIRTUAL_ENV # buildkit |
| RUN /bin/sh -c pip install --upgrade pip && pip install flake8 black isort bandit # buildkit |
| WORKDIR /app |
| CMD ["/bin/bash" "-c" "echo 'To run linting commands, use the virtual environment with the full path like this:' && echo 'docker run --rm -v $(pwd):/app <image-name> /bin/bash -c \"source /opt/venv/bin/activate && flake8 .\"' && echo 'Or simply run the non-python linters directly:' && echo 'docker run --rm -v $(pwd):/app <image-name> yamllint .forgejo'"] |