samvish commited on
Commit
4e69325
·
verified ·
1 Parent(s): ecff570

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -5,15 +5,17 @@ WORKDIR /code
5
 
6
  ENV PYTHONDONTWRITEBYTECODE 1
7
  ENV PYTHONUNBUFFERED 1
 
8
 
9
  COPY requirements.txt .
10
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
  COPY . /code
12
 
13
- # ---> ADD THIS LINE <---
14
- # Grant write permissions to the current user for the /code directory
15
- # This allows creating files like '.composio.lock' if needed in the WORKDIR
16
  # ---> END OF ADDED LINE <---
 
17
 
18
  EXPOSE 7860
19
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
5
 
6
  ENV PYTHONDONTWRITEBYTECODE 1
7
  ENV PYTHONUNBUFFERED 1
8
+ # REMOVED: ENV COMPOSIO_CACHE_DIR=... (use secret instead)
9
 
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
12
  COPY . /code
13
 
14
+ # ---> ADD THIS LINE (Broader Permissions) <---
15
+ # Grant read, write, execute permissions to all users for /code
16
+ RUN chmod -R 777 /code
17
  # ---> END OF ADDED LINE <---
18
+ # REMOVED: RUN chmod -R u+w /code (replaced by above)
19
 
20
  EXPOSE 7860
21
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]