Spaces:
Sleeping
Sleeping
Download Dockerfile from samvish/gmail-agent: direct link, hf CLI and curl.
- Browser
- Download file 560 Bytes
-
https://huggingface.co/spaces/samvish/gmail-agent/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/samvish/gmail-agent/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/samvish/gmail-agent/resolve/main/Dockerfile
560 Bytes
| # Dockerfile | |
| FROM python:3.11-slim | |
| WORKDIR /code | |
| ENV PYTHONDONTWRITEBYTECODE 1 | |
| ENV PYTHONUNBUFFERED 1 | |
| # REMOVED: ENV COMPOSIO_CACHE_DIR=... (use secret instead) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| COPY . /code | |
| # ---> ADD THIS LINE (Broader Permissions) <--- | |
| # Grant read, write, execute permissions to all users for /code | |
| RUN chmod -R 777 /code | |
| # ---> END OF ADDED LINE <--- | |
| # REMOVED: RUN chmod -R u+w /code (replaced by above) | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |