Checklist / Dockerfile
Ali2206's picture
Add debugging and improve startup: Enhanced environment variable logging, created run.py startup script, updated Dockerfile for better error handling
ef0c125
raw
history blame contribute delete
399 Bytes
FROM python:3.9-slim
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Expose the port that FastAPI will run on
EXPOSE 8000
# Set environment variables
ENV PORT=8000
ENV CORS_ORIGIN=*
# Run the FastAPI application using our startup script
CMD ["python", "run.py"]