Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -28,8 +28,9 @@ ENV MPLCONFIGDIR=/tmp/matplotlib
|
|
28 |
# Copy requirements file
|
29 |
COPY requirements.txt .
|
30 |
|
31 |
-
#
|
32 |
-
RUN pip install --no-cache-dir
|
|
|
33 |
|
34 |
# Copy application code
|
35 |
COPY . .
|
@@ -38,6 +39,7 @@ COPY . .
|
|
38 |
ENV DATA_PATH=/code/data
|
39 |
ENV DASH_DEBUG_MODE=false
|
40 |
ENV PYTHONUNBUFFERED=1
|
|
|
41 |
|
42 |
# Expose port
|
43 |
EXPOSE 7860
|
|
|
28 |
# Copy requirements file
|
29 |
COPY requirements.txt .
|
30 |
|
31 |
+
# Fix protobuf compatibility and install Python dependencies
|
32 |
+
RUN pip install --no-cache-dir protobuf>=3.20.0,<4.0.0 && \
|
33 |
+
pip install --no-cache-dir -r requirements.txt
|
34 |
|
35 |
# Copy application code
|
36 |
COPY . .
|
|
|
39 |
ENV DATA_PATH=/code/data
|
40 |
ENV DASH_DEBUG_MODE=false
|
41 |
ENV PYTHONUNBUFFERED=1
|
42 |
+
ENV TF_CPP_MIN_LOG_LEVEL=3
|
43 |
|
44 |
# Expose port
|
45 |
EXPOSE 7860
|