FROM base MAINTAINER Stefano Alberto Russo # Switch to root USER root # Install OpenSSH RUN apt-get install openssh-server -y # Set a fixed password for metauser (will be changed in the entypoint) RUN echo "metauser:metapass" | chpasswd # Set entrypoint command COPY files/entrypoint.sh /entrypoint.sh RUN chmod 755 /entrypoint.sh ENV DEFAULT_ENTRYPOINT_COMMAND="/entrypoint.sh" # Fix home permissions RUN chmod 777 /home # Set user (mainly for Singularity) USER metauser # Set container name ENV CONTAINER_NAME='SSH'