Browse Source

dockerfile: rename build argument OPENSSH_PACKAGE_VERSION to OPENSSH_SERVER_PACKAGE_VERSION for consistency

Fabian Peter Hammerle 3 years ago
parent
commit
b648c76350
2 changed files with 4 additions and 5 deletions
  1. 3 3
      Dockerfile
  2. 1 2
      sshd_config

+ 3 - 3
Dockerfile

@@ -1,20 +1,20 @@
 FROM docker.io/alpine:3.13.4
 
 ARG MARIADB_CLIENT_PACKAGE_VERSION=10.5.8-r0
-ARG OPENSSH_PACKAGE_VERSION=8.4_p1-r3
+ARG OPENSSH_SERVER_PACKAGE_VERSION=8.4_p1-r3
 ARG TINI_PACKAGE_VERSION=0.19.0-r0
 ARG USER=dump
 ENV SSHD_HOST_KEYS_DIR=/etc/ssh/host_keys
 RUN apk add --no-cache \
         mariadb-client=$MARIADB_CLIENT_PACKAGE_VERSION \
-        openssh-server=$OPENSSH_PACKAGE_VERSION \
+        openssh-server="$OPENSSH_SERVER_PACKAGE_VERSION" \
         tini=$TINI_PACKAGE_VERSION \
     && adduser -S -s /bin/ash "$USER" \
     && mkdir "$SSHD_HOST_KEYS_DIR" \
     && chown -c "$USER" "$SSHD_HOST_KEYS_DIR"
 VOLUME $SSHD_HOST_KEYS_DIR
 
-# RUN apk add --no-cache man openssh-doc=$OPENSSH_PACKAGE_VERSION
+#RUN apk add --no-cache less man-db openssh-doc=$OPENSSH_SERVER_PACKAGE_VERSION
 
 COPY sshd_config /etc/ssh/sshd_config
 EXPOSE 2200/tcp

+ 1 - 2
sshd_config

@@ -24,13 +24,12 @@ AuthenticationMethods publickey
 PubkeyAuthentication yes
 PasswordAuthentication no
 ChallengeResponseAuthentication no
-# dont check file permissions
 StrictModes no
 
+DisableForwarding yes
 AllowAgentForwarding no
 AllowStreamLocalForwarding no
 AllowTcpForwarding no
-DisableForwarding yes
 GatewayPorts no
 PermitTunnel no
 X11Forwarding no