18 lines
376 B
Text
18 lines
376 B
Text
# Use official Python image
|
|
FROM python:3.11-slim
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy requirements and install
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy app folder
|
|
COPY app/ ./app/
|
|
|
|
# Expose FastAPI port
|
|
EXPOSE 8000
|
|
|
|
# Command to run FastAPI via uvicorn
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|