Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files12344567891013 unmodified lines242526262728272829303132# Use an official Python runtime as a parent imageFROM python:3.9-slim
# Set environment variables for Python# Set environment variables for Python and MatplotlibENV PYTHONDONTWRITEBYTECODE 1ENV PYTHONUNBUFFERED 1ENV MPLCONFIGDIR=/app/.config/matplotlib
# Set the working directory inside the containerWORKDIR /app13 unmodified lines# Install the dependencies specified in requirements.txtRUN pip install --no-cache-dir -r requirements.txt
# Create the necessary directories and ensure they have proper permissionsRUN mkdir -p /app/uploads /app/static/uploads /app/static/results /tmp/flask_sessions /app/flask_sessions && \ chmod -R 777 /app/uploads /app/static/uploads /app/static/results /tmp/flask_sessions /app/flask_sessions# Create necessary directories and set proper permissionsRUN mkdir -p /app/uploads /app/static/uploads /app/static/results /tmp/flask_sessions /app/flask_sessions /app/models /app/.config/matplotlib && \ chmod -R 777 /app/uploads /app/static/uploads /app/static/results /tmp/flask_sessions /app/flask_sessions /app/models /app/.config/matplotlib
# Copy the entire application code to /appCOPY . /app/Dockerfile+5-4