hwang2006 commited on
Commit
e24c826
·
verified ·
1 Parent(s): 20e57f9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +28 -25
Dockerfile CHANGED
@@ -1,26 +1,29 @@
1
- # Use the official Python base image
2
- FROM python:3.11-slim
3
-
4
- # Set the working directory
5
- WORKDIR /app
6
-
7
- # Copy the requirements file to the working directory
8
- COPY requirements.txt .
9
-
10
- # Install the dependencies
11
- RUN pip install --no-cache-dir -r requirements.txt
12
-
13
- # Copy the rest of the application code to the working directory
14
- COPY . .
15
-
16
- # Install the summarymaker package
17
- RUN pip install .
18
-
19
- # Expose the port that Gradio app will run on
20
- EXPOSE 7860
21
-
22
- # Entry Point
23
- ENTRYPOINT [ "python" ]
24
-
25
- # Define the entry point for the container
 
 
 
26
  CMD ["src/summarizer/webapp/gradio_app.py"]
 
1
+ # Use the official Python base image
2
+ FROM python:3.11-slim
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Copy the requirements file to the working directory
8
+ COPY requirements.txt .
9
+
10
+ # Upgrade pip to the latest version
11
+ RUN pip install --upgrade pip
12
+
13
+ # Install the dependencies
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy the rest of the application code to the working directory
17
+ COPY . .
18
+
19
+ # Install the summarymaker package
20
+ RUN pip install .
21
+
22
+ # Expose the port that Gradio app will run on
23
+ EXPOSE 7860
24
+
25
+ # Entry Point
26
+ ENTRYPOINT [ "python" ]
27
+
28
+ # Define the entry point for the container
29
  CMD ["src/summarizer/webapp/gradio_app.py"]