Spaces:
Sleeping
Sleeping
Neurolingua
commited on
Commit
•
225dc8e
1
Parent(s):
31db65f
Update Dockerfile
Browse files- Dockerfile +11 -5
Dockerfile
CHANGED
@@ -1,6 +1,12 @@
|
|
1 |
-
FROM python:3.9
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
CMD ["python", "app.py"]
|
|
|
1 |
+
FROM python:3.9-slim
|
2 |
+
|
3 |
+
RUN apt-get update && apt-get install -y \
|
4 |
+
libgl1-mesa-glx \
|
5 |
+
libglib2.0-0 \
|
6 |
+
&& rm -rf /var/lib/apt/lists/*
|
7 |
+
|
8 |
+
WORKDIR /code
|
9 |
+
COPY ./requirements.txt /code/requirements.txt
|
10 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
11 |
+
COPY . /code
|
12 |
CMD ["python", "app.py"]
|