Spaces:
Running
Running
File size: 466 Bytes
59cfd68 fd62e61 59cfd68 fd62e61 59cfd68 fd62e61 59cfd68 3a9e81b 1e0ba61 59cfd68 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | FROM python:3.9-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY app.py .
COPY templates/ templates/
COPY static/ static/
# Create data directory with proper permissions
RUN mkdir -p /app/data && chmod 777 /app/data
# Set environment variables
ENV DATA_DIR=/app/data
ENV PYTHONUNBUFFERED=1
# Expose port
EXPOSE 7860
# Run the application
CMD ["python", "app.py"] |