Skip to content

Commit 60dc763

Browse files
committed
fix private keys being added to final image from openssh package
The openssh package generates some private keys upon installation. Switched to the client package instead; we don't need the server component anyways. Hadd to add a line to ensure ssh-keygen was installed for the tests. Signed-off-by: Taylor Silva <[email protected]>
1 parent 6a7ebf7 commit 60dc763

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RUN apk --no-cache add \
2828
gpg \
2929
gpg-agent \
3030
jq \
31-
openssh
31+
openssh-client
3232

3333
RUN git config --global user.email "git@localhost"
3434
RUN git config --global user.name "git"
@@ -55,6 +55,7 @@ ADD assets/ /opt/resource/
5555
RUN chmod +x /opt/resource/*
5656

5757
FROM resource AS tests
58+
RUN apk --no-cache add cmd:ssh-keygen
5859
ADD test/ /tests
5960
RUN /tests/all.sh
6061

0 commit comments

Comments
 (0)