hi
Browse files- Dockerfile +30 -0
- ffmpeg +0 -3
Dockerfile
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM docker.io/nvidia/cuda:11.3.1-cudnn8-devel-ubuntu18.04@sha256:69cd988555eabe116f76acc754b363eee75f37674c23adb2b523f5fa32543984
|
2 |
+
|
3 |
+
# existing instructions
|
4 |
+
RUN --mount=target=/root/packages.txt,source=packages.txt apt-get update && xargs -r -a /root/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
|
5 |
+
|
6 |
+
RUN curl https://pyenv.run | bash
|
7 |
+
|
8 |
+
RUN --mount=target=pre-requirements.txt,source=pre-requirements.txt pip install --no-cache-dir -r pre-requirements.txt
|
9 |
+
|
10 |
+
RUN --mount=target=requirements.txt,source=requirements.txt pip install --no-cache-dir -r requirements.txt
|
11 |
+
|
12 |
+
RUN useradd -m -u 1000 user
|
13 |
+
|
14 |
+
RUN pyenv install 3.10 && pyenv global 3.10 && pyenv rehash && pip install --no-cache-dir --upgrade pip==22.3.1 setuptools wheel && pip install --no-cache-dir datasets "huggingface-hub>=0.12.1" "protobuf<4" "click<8.1" "pydantic~=1.0"
|
15 |
+
|
16 |
+
WORKDIR /home/user/app
|
17 |
+
|
18 |
+
RUN apt-get update && apt-get install -y git make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev git-lfs ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx && rm -rf /var/lib/apt/lists/* && git lfs install
|
19 |
+
|
20 |
+
RUN pip install --no-cache-dir gradio==3.39.0
|
21 |
+
|
22 |
+
COPY --link --chown=1000 --from=lfs /app /home/user/app
|
23 |
+
|
24 |
+
# Copy ffmpeg file from local system into the docker image
|
25 |
+
COPY ffmpeg /
|
26 |
+
|
27 |
+
# Give execution permissions for the ffmpeg file
|
28 |
+
RUN chmod +x /ffmpeg
|
29 |
+
|
30 |
+
COPY --link --chown=1000 ./ /home/user/app
|
ffmpeg
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:0c845d62fe19dec3a6c195a204b36a246beca2cd094f544745b242b3c64be83e
|
3 |
-
size 95530712
|
|
|
|
|
|
|
|