Skip to content

Commit 86d426f

Browse files
authored
Merge pull request #52 from guptaNswati/nvbandwidth-fix-removekey
remove key in the same layer
2 parents 70c40e6 + f0a973b commit 86d426f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

deployments/container/nvbandwidth/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,17 @@ FROM nvcr.io/nvidia/cuda:13.0.1-base-ubuntu24.04
4444

4545
ARG port=2222
4646

47+
# Installing openssh-server, install host keys in post-install as flaged by scanner
4748
RUN apt-get update && apt-get install -y --no-install-recommends \
4849
openmpi-bin \
4950
openmpi-common \
5051
libopenmpi-dev \
5152
openssh-client \
5253
openssh-server \
54+
&& rm -f /etc/ssh/ssh_host_* \
5355
&& rm -rf /var/lib/apt/lists/*
5456

55-
# Installing openssh-server, install host keys in post-install as flaged by scanner
56-
RUN rm -f /etc/ssh/ssh_host_* && mkdir -p /var/run/sshd
57+
RUN mkdir -p /var/run/sshd
5758

5859
# Got it from mpi-operator/build/base/Dockerfile
5960
# Allow OpenSSH to talk to containers without asking for confirmation

0 commit comments

Comments
 (0)