FASTAPI / Dockerfile
Ezhil
Initaial commit
a6b2fb2
raw
history blame
379 Bytes
# Use official Python image as base
FROM python:3.10
# Set working directory
WORKDIR /app
# Copy application files
COPY main.py .
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port the app runs on
EXPOSE 8000
# Command to run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]