Discord-Sentinel / Dockerfile
Kode-Animator's picture
Deploy Discord Sentinel with keepalive server for HF Spaces
34428ec
Raw
History Blame Contribute Delete
337 Bytes
FROM python:3.10-slim
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
# Create a non-root user (Security Best Practice)
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
CMD ["python", "app.py"]