1
Fork 0
ci-images/images/python-script/Dockerfile
Lucas Schwiderski 8d51731d45
Fix versioning schemes
The `node` versioning scheme does only use LTS by default, which we
want. So we need to apply that for the Docker tags of node.js images.

NPM packages should use the appropriate versioning scheme as well.
2024-08-24 17:11:04 +02:00

35 lines
778 B
Docker

FROM python:3.12.5-slim-bookworm
RUN set -e; \
apt-get update -q; \
apt-get install -qy --no-install-recommends --no-install-suggests \
bc \
curl \
dash \
gettext \
git \
jq \
; \
apt-get clean; \
rm -rf \
/var/cache/apt/* \
/var/lib/apt/lists/* \
/var/log/* \
/usr/local/share/doc/* \
/usr/local/share/man/* \
/usr/share/doc/* \
/usr/share/man/* \
;
# No need for root access for a script runner
RUN useradd -m -d /home/runner -s /bin/bash runner;
WORKDIR /home/runner
USER runner
ENV PATH=/home/runner/.local/bin:$PATH
COPY requirements.txt ./
RUN set -e; \
pip install --user -r requirements.txt; \
rm -r /home/runner/.cache;