tecuts commited on
Commit
6971ed7
·
verified ·
1 Parent(s): 5ea2723

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -1
Dockerfile CHANGED
@@ -12,5 +12,12 @@ WORKDIR /app
12
  COPY --chown=user ./requirements.txt requirements.txt
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
- COPY --chown=user . /app
 
 
 
 
 
 
 
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
12
  COPY --chown=user ./requirements.txt requirements.txt
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
+ # Set permissions for all files and directories
16
+ RUN find /app -type f -exec chmod 644 {} \; && \
17
+ find /app -type d -exec chmod 755 {} \; && \
18
+ chmod 644 credentials.json && \
19
+ chown -R user:user /app
20
+
21
+
22
+ #COPY --chown=user . /app
23
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]