Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# Use a lightweight Python image
|
| 2 |
FROM python:3.9-slim
|
| 3 |
|
| 4 |
# Set the working directory in the container
|
|
@@ -17,7 +17,10 @@ COPY . /app
|
|
| 17 |
RUN pip install --upgrade pip
|
| 18 |
RUN pip install -r requirements.txt
|
| 19 |
|
| 20 |
-
#
|
|
|
|
|
|
|
|
|
|
| 21 |
EXPOSE 7860
|
| 22 |
|
| 23 |
# Command to run the Gradio app
|
|
|
|
| 1 |
+
# Use a lightweight Python base image
|
| 2 |
FROM python:3.9-slim
|
| 3 |
|
| 4 |
# Set the working directory in the container
|
|
|
|
| 17 |
RUN pip install --upgrade pip
|
| 18 |
RUN pip install -r requirements.txt
|
| 19 |
|
| 20 |
+
# Set the environment variable for protobuf compatibility
|
| 21 |
+
ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
|
| 22 |
+
|
| 23 |
+
# Expose the default Gradio port
|
| 24 |
EXPOSE 7860
|
| 25 |
|
| 26 |
# Command to run the Gradio app
|