Skip to content

Commit 366158c

Browse files
author
thr3a
committed
update:
1 parent e4ead17 commit 366158c

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

.github/workflows/build-x64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
steps:
3737
- name: Free Disk Space (Ubuntu)
3838
uses: jlumbroso/free-disk-space@main
39-
if: contains(fromJson('["cuda11.8-torch", "cuda12.1-torch", "alma-7b-server", "iopaint", "llama-cpp-python"]'), matrix.target)
39+
if: contains(fromJson('["alma-7b-server", "iopaint", "llama-cpp-python"]'), matrix.target)
4040
with:
4141
# this might remove tools that are actually needed,
4242
# if set to "true" but frees about 6 GB

cuda11.8-torch/Dockerfile

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
1-
FROM --platform=linux/x86_64 nvcr.io/nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
1+
FROM --platform=linux/x86_64 python:3.11-slim
22

3-
ARG PYTHON_VERSION=3.11
43
ARG PACKAGES="git curl ca-certificates vim wget unzip build-essential cmake jq"
54

65
ENV DEBIAN_FRONTEND=noninteractive
76
ENV TZ=Asia/Tokyo
87
ENV PYTHONUNBUFFERED=1
98
ENV PIP_NO_CACHE_DIR=on
109
ENV PYTHONDONTWRITEBYTECODE=1
10+
ENV UV_PROJECT_ENVIRONMENT="/usr/"
1111

12-
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv f23c5a6cf475977595c89f51ba6932366a755776 \
13-
&& echo "deb http://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy main" > /etc/apt/sources.list.d/python.list \
14-
&& echo "deb-src http://ppa.launchpad.net/deadsnakes/ppa/ubuntu jammy main" >> /etc/apt/sources.list.d/python.list
12+
RUN apt-get update && apt-get install -y --no-install-recommends ${PACKAGES}
1513

16-
RUN apt-get update \
17-
&& apt-get install -y --no-install-recommends ${PACKAGES} python${PYTHON_VERSION} \
18-
&& ln -nfs /usr/bin/python${PYTHON_VERSION} /usr/bin/python \
19-
&& ln -nfs /usr/bin/python${PYTHON_VERSION} /usr/bin/python3 \
20-
&& rm -rf /var/lib/apt/lists/* \
21-
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python -
22-
RUN pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118
14+
RUN pip install -U pip
15+
RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
2316

2417
WORKDIR /app

0 commit comments

Comments
 (0)