Text-Vectorizer / Dockerfile
shukdev3's picture
Upload 4 files
fd87dec verified
Raw
History Blame Contribute Delete
583 Bytes
# Hugging Face Spaces (Docker SDK) — see README.md for the YAML config block
# that tells the Space to build this image and route traffic to port 7860.
FROM python:3.11-slim
# HF Spaces containers run as a non-root user with UID 1000
RUN useradd -m -u 1000 user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
COPY --chown=user requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY --chown=user . /app
USER user
ENV PORT=7860 \
FLASK_DEBUG=0
EXPOSE 7860
CMD ["python", "app.py"]