# Use Python 3.11 as the base image FROM python:3.11 # Set the working directory inside the container WORKDIR /app # Copy all project files into the container COPY . /app # Install dependencies RUN pip install --upgrade pip RUN pip install -r requirement.txt # Set PYTHONPATH so FastAPI can find the 'backend' module ENV PYTHONPATH=/app # Expose the required port EXPOSE 8000 # Start FastAPI with the correct module path # CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"] CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]