Spaces:
Building
on
T4
Building
on
T4
Update Dockerfile
Browse files- Dockerfile +16 -3
Dockerfile
CHANGED
@@ -1,6 +1,4 @@
|
|
1 |
-
FROM nvidia/cuda:12.
|
2 |
-
|
3 |
-
ARG DEBIAN_FRONTEND=noninteractive
|
4 |
|
5 |
RUN apt-get update && apt-get install --no-install-recommends -y \
|
6 |
curl \
|
@@ -16,6 +14,21 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
16 |
git \
|
17 |
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
WORKDIR /app
|
20 |
|
21 |
COPY ./requirements.txt /app/requirements.txt
|
|
|
1 |
+
FROM nvidia/cuda:12.2.2-cudnn8-devel-rockylinux9
|
|
|
|
|
2 |
|
3 |
RUN apt-get update && apt-get install --no-install-recommends -y \
|
4 |
curl \
|
|
|
14 |
git \
|
15 |
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
16 |
|
17 |
+
RUN dnf update -y && \
|
18 |
+
dnf install -y \
|
19 |
+
curl \
|
20 |
+
@development-tools \
|
21 |
+
ffmpeg \
|
22 |
+
libSM \
|
23 |
+
libXext \
|
24 |
+
python3-pip \
|
25 |
+
python3-devel \
|
26 |
+
ninja-build \
|
27 |
+
tesseract \
|
28 |
+
poppler-utils \
|
29 |
+
git \
|
30 |
+
&& dnf clean all && rm -rf /var/cache/dnf
|
31 |
+
|
32 |
WORKDIR /app
|
33 |
|
34 |
COPY ./requirements.txt /app/requirements.txt
|