Spaces:
Runtime error
Runtime error
merge packages.txt content into dockerfile then make it also use reuirements.txt
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -18,6 +18,10 @@ RUN apt-get update \
|
|
| 18 |
pkg-config \
|
| 19 |
cmake \
|
| 20 |
build-essential \
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
libopenblas-dev \
|
| 22 |
&& ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \
|
| 23 |
&& echo $TZ > /etc/timezone \
|
|
@@ -35,8 +39,8 @@ RUN git clone --depth 1 --recurse-submodules \
|
|
| 35 |
&& rm -rf /tmp/llama-cpp-python
|
| 36 |
|
| 37 |
# 7. (Optional) Your other Python deps
|
| 38 |
-
|
| 39 |
-
|
| 40 |
|
| 41 |
# 8. Copy app code
|
| 42 |
COPY . .
|
|
|
|
| 18 |
pkg-config \
|
| 19 |
cmake \
|
| 20 |
build-essential \
|
| 21 |
+
python3-opencv \
|
| 22 |
+
build-essential \
|
| 23 |
+
cmake \
|
| 24 |
+
libopenblas-dev \
|
| 25 |
libopenblas-dev \
|
| 26 |
&& ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \
|
| 27 |
&& echo $TZ > /etc/timezone \
|
|
|
|
| 39 |
&& rm -rf /tmp/llama-cpp-python
|
| 40 |
|
| 41 |
# 7. (Optional) Your other Python deps
|
| 42 |
+
COPY requirements.txt .
|
| 43 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 44 |
|
| 45 |
# 8. Copy app code
|
| 46 |
COPY . .
|