FROM python:3.10-slim # Install system dependencies (specifically git and ssh client) RUN apt-get update && apt-get install -y --no-install-recommends \ git openssh-client && \ rm -rf /var/lib/apt/lists/* # HF uid 1000 compliance RUN useradd -m -u 1000 user USER user ENV HOME=/home/user WORKDIR $HOME/app COPY --chown=user main.py . CMD ["python", "main.py"]