gmail-agent / Dockerfile
samvish's picture
Update Dockerfile
ea9af80 verified
raw
history blame contribute delete
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"]