ivoryzhang commited on
Commit
6b27b28
·
1 Parent(s): 641f4f1

update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -10
Dockerfile CHANGED
@@ -1,20 +1,18 @@
1
- # Base image with Python
2
- FROM python:3.10-slim
3
 
4
- # Set working directory
5
  WORKDIR /app
6
 
7
- # Copy the entire project into the container
8
  COPY . /app
9
 
10
- # Install dependencies
11
- RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # If your app has additional requirements:
14
- # RUN pip install --no-cache-dir -r requirements.txt
15
 
16
- # Expose the default port
17
  EXPOSE 7860
18
 
19
- # Run your app
20
  CMD ["python", "app.py"]
 
1
+ # Dockerfile (updated)
 
2
 
3
+ FROM python:3.10-slim
4
  WORKDIR /app
5
 
6
+ # Copy all project files
7
  COPY . /app
8
 
9
+ # Change ownership to allow writing
10
+ RUN chmod -R a+w /app
11
 
12
+ # Install dependencies
13
+ RUN pip install --no-cache-dir flask
14
 
15
+ # Expose default port
16
  EXPOSE 7860
17
 
 
18
  CMD ["python", "app.py"]