Ashwini commited on
Commit
3725258
1 Parent(s): 083582d

update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -6
Dockerfile CHANGED
@@ -1,14 +1,15 @@
1
  FROM python:3.12.7-alpine
2
 
3
- COPY . .
 
4
 
5
- WORKDIR /
6
 
 
7
  RUN pip install --upgrade pip
 
8
 
9
- RUN pip install --no-cache-dir --upgrade -r /requirements.txt
10
-
11
- # Grant all permissions to files and directories in the container
12
- RUN chmod -R 777 /
13
 
14
  CMD ["python3", "main.py"]
 
1
  FROM python:3.12.7-alpine
2
 
3
+ # Copy files into the /ai-backend directory
4
+ COPY . /ai-backend
5
 
6
+ WORKDIR /ai-backend
7
 
8
+ # Install pip and dependencies
9
  RUN pip install --upgrade pip
10
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
 
12
+ # Grant all permissions only to the /ai-backend directory
13
+ RUN chmod -R 777 /ai-backend
 
 
14
 
15
  CMD ["python3", "main.py"]