samvish commited on
Commit
ea9af80
·
verified ·
1 Parent(s): dbef66c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -1,16 +1,21 @@
1
- # Dockerfile (Clean Version - Recommended)
2
 
3
  FROM python:3.11-slim
4
  WORKDIR /code
5
 
6
  ENV PYTHONDONTWRITEBYTECODE 1
7
  ENV PYTHONUNBUFFERED 1
8
- # NO cache/permission related ENV or RUN commands here
9
- # Rely on HF Secrets for COMPOSIO_CACHE_DIR and TIKTOKEN_CACHE_DIR
10
 
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
13
  COPY . /code
14
 
 
 
 
 
 
 
15
  EXPOSE 7860
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ # Dockerfile
2
 
3
  FROM python:3.11-slim
4
  WORKDIR /code
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"]