awerks commited on
Commit
66c87b5
1 Parent(s): 94bb65c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -29
Dockerfile CHANGED
@@ -1,30 +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
 
1
+ FROM docker.io/nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04@sha256:cf67d5cc154877ae9eca65df59b
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