Spaces:
Runtime error
Runtime error
Commit
•
00c4126
1
Parent(s):
b26e184
Update Dockerfile
Browse files- Dockerfile +18 -12
Dockerfile
CHANGED
@@ -1,16 +1,22 @@
|
|
1 |
-
FROM python:3.
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
-
|
|
|
|
|
10 |
|
11 |
-
|
|
|
12 |
|
13 |
-
|
14 |
-
RUN chmod 777 /.cache
|
15 |
-
RUN mkdir .chroma
|
16 |
-
RUN chmod 777 .chroma
|
|
|
1 |
+
FROM python:3.8-slim
|
2 |
|
3 |
+
RUN \
|
4 |
+
set -eux; \
|
5 |
+
apt-get update; \
|
6 |
+
DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
|
7 |
+
python3-pip \
|
8 |
+
build-essential \
|
9 |
+
python3-venv \
|
10 |
+
ffmpeg \
|
11 |
+
git \
|
12 |
+
; \
|
13 |
+
rm -rf /var/lib/apt/lists/*
|
14 |
|
15 |
+
RUN pip3 install -U pip && pip3 install -U wheel && pip3 install -U setuptools==59.5.0
|
16 |
+
COPY ./requirements.txt /tmp/requirements.txt
|
17 |
+
RUN pip3 install -r /tmp/requirements.txt && rm -r /tmp/requirements.txt
|
18 |
|
19 |
+
COPY . /code
|
20 |
+
WORKDIR /code
|
21 |
|
22 |
+
CMD ["bash"]
|
|
|
|
|
|