File size: 373 Bytes
6d1f5ee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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"]