newtest / Dockerfile
bigbossmonster's picture
Update Dockerfile
e9df066 verified
raw
history blame contribute delete
424 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app code
COPY . .
# Setup temp directory for HF Spaces (non-root user)
RUN mkdir -p /tmp/verifier_uploads && chmod 777 /tmp/verifier_uploads
ENV TMPDIR=/tmp/verifier_uploads
# Hugging Face Spaces Port
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]