Skip to content
Snippets Groups Projects
Select Git revision
  • bc5b6a67c7c845e48a84a5f55d5f60dae330eb5f
  • master default
  • v0.0.1
3 results

06-uws.sql

Blame
  • Dockerfile 553 B
    FROM base
    MAINTAINER Stefano Alberto Russo <stefano.russo@inaf.it>
    
    # 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'