vietqa-api / Dockerfile
quanho114
Deploy VietQA API with Secure Firebase
4f8c5b9
raw
history blame contribute delete
391 Bytes
# Dockerfile for Hugging Face Spaces
FROM python:3.11-slim
WORKDIR /app
# Copy application code first
COPY api.py .
COPY src/ ./src/
# Install dependencies LAST to force rebuild
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Expose port (HF Spaces uses port 7860)
EXPOSE 7860
# Run the API
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]