ai_Dataanalyst / Dockerfile
Emannn2004's picture
Upload 6 files
0d3d494 verified
Raw History Blame Contribute Delete
394 Bytes
# Base image
FROM python:3.12-slim
# Set working directory
WORKDIR /app
# Copy project files
COPY . /app
# Upgrade pip
RUN pip install --upgrade pip
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose FastAPI port
EXPOSE 7860
# Set command for HF Spaces to run your app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]