Spaces:
Runtime error
Runtime error
Download Dockerfile from sushintern01/ChartQA_FLASK: direct link, hf CLI and curl.
- Browser
- Download file 458 Bytes
-
https://huggingface.co/spaces/sushintern01/ChartQA_FLASK/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sushintern01/ChartQA_FLASK/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sushintern01/ChartQA_FLASK/resolve/main/Dockerfile
458 Bytes
| FROM python:3.9 | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install -r requirements.txt | |
| COPY . . | |
| # Create directory for session files | |
| RUN mkdir -p /app/flask_session | |
| # Make upload directory | |
| RUN mkdir -p /app/static/uploads | |
| # Set permissions | |
| RUN chmod -R 777 /app/static/uploads | |
| RUN chmod -R 777 /app/flask_session | |
| # Set environment variables | |
| ENV FLASK_APP=app.py | |
| ENV FLASK_ENV=production | |
| # Run the app | |
| CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"] |