Upload 3 files

This commit is contained in:
Aira Catapang
2026-04-04 07:34:08 +00:00
committed by system
parent 3d4135ca0e
commit 88cc85b98b
3 changed files with 662 additions and 0 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
# Use official Python lightweight image
FROM python:3.10-slim
# Set the working directory
WORKDIR /app
# Copy requirements and install them
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application files
COPY . .
# Set up a non-root user (Required by Hugging Face Spaces)
RUN useradd -m -u 1000 user
RUN chown -R user:user /app
USER user
# Expose the default Hugging Face Space port
EXPOSE 7860
# Command to run the FastAPI application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]