customer-support / Dockerfile
Prajith04's picture
Update Dockerfile
0c80a36 verified
raw
history blame
523 Bytes
FROM python:3.10-slim
# Install dependencies
RUN apt-get update && apt-get install -y git curl && rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy source files
COPY . /app
# Install Python packages
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
# Expose port for Hugging Face Spaces
ENV PORT 7860
# Launch FastAPI with Uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]