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.
35 lines
778 B
Docker
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;
|