Browse Source

pin openssh-server package version

Fabian Peter Hammerle 3 years ago
parent
commit
1bc3d7330e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Dockerfile

+ 2 - 1
Dockerfile

@@ -1,6 +1,7 @@
 FROM alpine:3.9
 
-RUN apk add --no-cache openssh-server
+ARG OPENSSH_SERVER_PACKAGE_VERSION=7.9_p1-r6
+RUN apk add --no-cache openssh-server=$OPENSSH_SERVER_PACKAGE_VERSION
 
 ENV SSHD_HOST_KEYS_DIR /etc/ssh/host_keys
 VOLUME $SSHD_HOST_KEYS_DIR