Husnain commited on
Commit
6eb3f8e
1 Parent(s): a39e60f

💥 [Fix] [Errno 13] Permission denied: '/.cache'

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -1,7 +1,8 @@
1
  FROM python:3.11-slim
2
  WORKDIR $HOME/app
3
  COPY . .
 
4
  RUN pip install -r requirements.txt
5
  VOLUME /data
6
  EXPOSE 23333
7
- CMD ["python", "-m", "apis.chat_api"]
 
1
  FROM python:3.11-slim
2
  WORKDIR $HOME/app
3
  COPY . .
4
+ RUN mkdir /.cache && chmod 777 /.cache
5
  RUN pip install -r requirements.txt
6
  VOLUME /data
7
  EXPOSE 23333
8
+ CMD ["python", "-m", "apis.chat_api"]