Spaces:
Paused
Paused
FROM python:3.10-slim | |
# Set working directory | |
WORKDIR /app | |
# Copy requirements first to leverage Docker cache | |
COPY requirements.txt . | |
# Install dependencies | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy only what's needed | |
COPY main/ ./main/ | |
# Set environment variables | |
ENV PYTHONPATH=/app | |
ENV PYTHONUNBUFFERED=1 | |
# Expose the port | |
EXPOSE 7680 | |
# Use same command as working version | |
CMD ["python", "-m", "main.app"] |