Skip to content

Commit 3353b24

Browse files
author
Carlos Berroteran
committed
Bundle commands to reduce image size
1 parent 5da119b commit 3353b24

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ RUN apt-get -y update && apt-get install -y --no-install-recommends \
1414
curl \
1515
xz-utils \
1616
libpci3 \
17-
initramfs-tools
17+
initramfs-tools \
18+
&& rm -rf /var/lib/apt/lists/*
1819

1920
FROM base
2021

@@ -25,8 +26,7 @@ ARG VERSION_MAJOR="21.10"
2526
ARG VERSION_MINOR="1247438"
2627
ARG AMDGPU_VERSION="${PREFIX}${VERSION_MAJOR}-${VERSION_MINOR}${POSTFIX}"
2728

28-
RUN curl --referer ${AMD_SITE_URL} -O ${AMD_SITE_URL}${AMDGPU_VERSION}.tar.xz
29-
30-
RUN tar -Jxvf ${AMDGPU_VERSION}.tar.xz \
29+
RUN curl --referer ${AMD_SITE_URL} -O ${AMD_SITE_URL}${AMDGPU_VERSION}.tar.xz \
30+
&& tar -Jxvf ${AMDGPU_VERSION}.tar.xz \
3131
&& ${AMDGPU_VERSION}/amdgpu-install -y --opencl=rocr,legacy --headless --no-dkms --no-32 \
32-
&& rm -rf amdgpu-pro-* /var/opt/amdgpu-pro-local /var/lib/apt/lists/*
32+
&& rm -rf amdgpu-pro-* /var/opt/amdgpu-pro-local

0 commit comments

Comments
 (0)