Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
@@ -1,11 +1,16 @@
|
|
1 |
FROM python:3.8-slim
|
2 |
|
3 |
-
#
|
4 |
ENV TF_CPP_MIN_LOG_LEVEL=3
|
5 |
ENV TF_ENABLE_ONEDNN_OPTS=0
|
6 |
|
7 |
WORKDIR /app
|
8 |
-
|
|
|
9 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
10 |
EXPOSE 7860
|
|
|
11 |
CMD ["python", "app.py"]
|
|
|
1 |
FROM python:3.8-slim
|
2 |
|
3 |
+
# Suppress TensorFlow warnings
|
4 |
ENV TF_CPP_MIN_LOG_LEVEL=3
|
5 |
ENV TF_ENABLE_ONEDNN_OPTS=0
|
6 |
|
7 |
WORKDIR /app
|
8 |
+
|
9 |
+
COPY requirements.txt .
|
10 |
RUN pip install --no-cache-dir -r requirements.txt
|
11 |
+
|
12 |
+
COPY . .
|
13 |
+
|
14 |
EXPOSE 7860
|
15 |
+
|
16 |
CMD ["python", "app.py"]
|