2023-01-19 14:43:06 +01:00
|
|
|
from debian:stable-slim
|
|
|
|
|
2024-02-13 13:15:48 +01:00
|
|
|
RUN apt-get update && apt-get upgrade -y && apt-get install --no-install-recommends -y python3-all python3-dev python3-pip python3-venv build-essential pylint git && apt-get clean && rm -fr rm -rf /var/lib/apt/lists/*
|
2023-11-24 10:30:58 +01:00
|
|
|
RUN pip install pre-commit --break-system-packages
|
2024-02-13 13:35:20 +01:00
|
|
|
RUN mkdir /src && git config --global --add safe.directory /src
|
|
|
|
COPY .pre-commit-config.yaml .pre-commit-pylint fake_python_module /src/
|
|
|
|
RUN cd /src && git init && git add * && pre-commit autoupdate && pre-commit run --all-files && rm -fr /src
|