FROM centos/s2i-core-centos7:latest MAINTAINER Christophe LARUE COPY sx.sh /bin/sx RUN chmod 775 /bin/sx RUN useradd startx && echo "startx" | passwd --stdin startx && usermod -aG wheel startx USER startx CMD [ "/bin/sx" ]