image_desc / Dockerfile
Shridhartd's picture
Create Dockerfile
b37fd5e verified
raw
history blame contribute delete
336 Bytes
# Use official Python image
FROM python:3.10
# Set working directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app files
COPY app.py .
# Expose API port
EXPOSE 7860
# Start the FastAPI app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]