FuzzyPSI-hamming / Dockerfile
acpr123's picture
Upload deployment-ready Space app
c68a03b verified
Raw
History Blame Contribute Delete
517 Bytes
FROM python:3.10-slim
RUN useradd -m -u 1000 user
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
git \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /home/user/app
COPY --chown=user requirements.txt ./
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY --chown=user . .
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
PYTHONUNBUFFERED=1
CMD ["python", "app.py"]