Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 |
-
#
|
| 11 |
-
RUN pip install --
|
| 12 |
-
|
| 13 |
-
#
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
#
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
#
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
#
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
#
|
|
|
|
|
|
|
|
|
|
| 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"]
|