DataPrivacyEnv / Dockerfile
Paramveer singh
Final: Restored multi-mode structure
91ba8ea
Raw History Blame Contribute Delete
463 Bytes
# Use a highly optimized, lightweight Python image
FROM python:3.10-slim
# Set the working directory
WORKDIR /app
# Copy the requirements file and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application files
COPY . .
# Hugging Face Spaces require port 7860
EXPOSE 7860
# Start the FastAPI server using Uvicorn
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]