samvish commited on
Commit
c3cdd13
·
verified ·
1 Parent(s): ca3be46

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -5,15 +5,18 @@ WORKDIR /code
5
 
6
  ENV PYTHONDONTWRITEBYTECODE 1
7
  ENV PYTHONUNBUFFERED 1
8
-
9
- # ---> MODIFIED LINE <---
10
- # Set a writable cache directory for Composio inside the temporary directory
11
  ENV COMPOSIO_CACHE_DIR=/tmp/.composio
12
- # ---> END OF MODIFIED LINE <---
13
 
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
16
  COPY . /code
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
+ # Keep cache directory in /tmp as it's guaranteed writable
 
 
9
  ENV COMPOSIO_CACHE_DIR=/tmp/.composio
 
10
 
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
13
  COPY . /code
14
 
15
+ # ---> ADD THIS LINE <---
16
+ # Grant write permissions to the current user for the /code directory
17
+ # This allows creating files like '.composio.lock' if needed in the WORKDIR
18
+ RUN chmod -R u+w /code
19
+ # ---> END OF ADDED LINE <---
20
+
21
  EXPOSE 7860
22
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]