File size: 354 Bytes
849a7bc c7b1ae2 849a7bc c7b1ae2 849a7bc a99b7f4 933a887 849a7bc 3721a6d 849a7bc 99ff4b8 3721a6d 849a7bc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# Use official Python image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy all project files
COPY . .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port for FastAPI
EXPOSE 8001
# Command to run the FastAPI app with uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8001"] |