Spaces:
Sleeping
Sleeping
File size: 401 Bytes
e6108ec 1950d4b 27ac340 1950d4b e42870c 1950d4b e42870c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
FROM python:3.11-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create logs directory with proper permissions
RUN mkdir -p logs && chmod 777 logs
# Expose port
EXPOSE 7860
# Run the application with uvicorn and WSGI adapter
CMD ["uvicorn", "wsgi:app", "--host", "0.0.0.0", "--port", "7860"] |