Browse Source

Force ownership of /home/data

master
Carlos Mogas da Silva 2 months ago
parent
commit
95cd2c630c
  1. 1
      Dockerfile

1
Dockerfile

@ -10,6 +10,7 @@ RUN rm -f /etc/ssh/ssh_host_* \
&& groupadd --non-unique --gid $GROUPID data \
&& useradd --non-unique --uid $USERID --gid $GROUPID --no-create-home --home-dir /home/data data \
&& mkdir -p /home/data \
&& chown root:root /home/data \
&& mkdir -p /etc/ssh/host_keys/ \
&& echo "AuthorizedKeysFile $AUTHORIZED_KEYS_FILE" >> /etc/ssh/sshd_config \
&& echo "HostKey /etc/ssh/host_keys/ssh_host_ecdsa_key" >> /etc/ssh/sshd_config \

Loading…
Cancel
Save