cheesecz commited on
Commit
02a11c3
·
verified ·
1 Parent(s): 343b5b1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -13
Dockerfile CHANGED
@@ -1,23 +1,14 @@
1
- # Use an official Python runtime as a parent image
2
  FROM python:3.8
3
 
4
- # Set the working directory
5
  WORKDIR /app
6
 
7
- # Copy requirement file
8
- COPY requirements.txt requirements.txt
9
 
10
- # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Copy the rest of the application files
14
  COPY . .
15
 
16
- # Expose the Flask default port
17
  EXPOSE 7860
18
-
19
- # Set writable cache directory
20
- ENV TRANSFORMERS_CACHE=/tmp
21
-
22
- # Run Flask server
23
- CMD ["python", "app.py"]
 
 
1
  FROM python:3.8
2
 
 
3
  WORKDIR /app
4
 
5
+ # Set writable cache directory
6
+ ENV TRANSFORMERS_CACHE=/tmp
7
 
8
+ COPY requirements.txt requirements.txt
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
 
11
  COPY . .
12
 
 
13
  EXPOSE 7860
14
+ CMD ["python", "app.py"]