Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
@@ -6,6 +6,10 @@ USER root
|
|
6 |
RUN apt-get --allow-releaseinfo-change update && apt-get -y install software-properties-common
|
7 |
RUN pip3 install --upgrade setuptools pip
|
8 |
|
|
|
|
|
|
|
|
|
9 |
# Set work directory
|
10 |
WORKDIR /app
|
11 |
|
@@ -23,5 +27,6 @@ RUN chmod +x entrypoint.sh
|
|
23 |
# Expose necessary ports
|
24 |
EXPOSE 5005 5055
|
25 |
|
26 |
-
# Start the entrypoint script
|
27 |
-
CMD ["/bin/
|
|
|
|
6 |
RUN apt-get --allow-releaseinfo-change update && apt-get -y install software-properties-common
|
7 |
RUN pip3 install --upgrade setuptools pip
|
8 |
|
9 |
+
# Set environment variables to fix Matplotlib and TensorFlow warnings
|
10 |
+
ENV MPLCONFIGDIR=/tmp/matplotlib
|
11 |
+
ENV TF_CPP_MIN_LOG_LEVEL=2
|
12 |
+
|
13 |
# Set work directory
|
14 |
WORKDIR /app
|
15 |
|
|
|
27 |
# Expose necessary ports
|
28 |
EXPOSE 5005 5055
|
29 |
|
30 |
+
# Start the entrypoint script properly
|
31 |
+
CMD ["/bin/sh", "/app/entrypoint.sh"]
|
32 |
+
|