Skip to content

Commit

Permalink
Tune packages
Browse files Browse the repository at this point in the history
"--details" adds more than 1000 lines of logs, not needed
  • Loading branch information
YanWenKun committed Mar 15, 2024
1 parent 6fc1efe commit 8228c2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ LABEL maintainer="code@yanwk.fun"
# Note: GCC for InsightFace, FFmpeg for video
RUN --mount=type=cache,target=/var/cache/zypp \
set -eu \
&& zypper install --no-confirm --details \
&& zypper install --no-confirm \
python311 python311-pip python311-wheel python311-setuptools \
python311-devel python311-Cython gcc-c++ cmake \
python311-av python311-ffmpeg-python python311-numpy ffmpeg \
google-noto-sans-fonts google-noto-sans-cjk-fonts google-noto-coloremoji-fonts \
shadow git aria2 \
Mesa-libGL1 libgthread-2_0-0 \
&& rm /usr/lib64/python3.11/EXTERNALLY-MANAGED

RUN --mount=type=cache,target=/root/.cache/pip \
pip install --break-system-packages \
--upgrade pip
--upgrade pip wheel setuptools Cython numpy

# Install PyTorch
RUN --mount=type=cache,target=/root/.cache/pip \
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile-rocm
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,18 @@ LABEL maintainer="code@yanwk.fun"
# Note: GCC for InsightFace, FFmpeg for video
RUN --mount=type=cache,target=/var/cache/zypp \
set -eu \
&& zypper install --no-confirm --details \
&& zypper install --no-confirm \
python311 python311-pip python311-wheel python311-setuptools \
python311-devel python311-Cython gcc-c++ cmake \
python311-av python311-ffmpeg-python python311-numpy ffmpeg \
google-noto-sans-fonts google-noto-sans-cjk-fonts google-noto-coloremoji-fonts \
shadow git aria2 \
Mesa-libGL1 libgthread-2_0-0 \
&& rm /usr/lib64/python3.11/EXTERNALLY-MANAGED

RUN --mount=type=cache,target=/root/.cache/pip \
pip install --break-system-packages \
--upgrade pip
--upgrade pip wheel setuptools Cython numpy

# Install PyTorch nightly
RUN --mount=type=cache,target=/root/.cache/pip \
Expand Down

0 comments on commit 8228c2e

Please sign in to comment.