Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #######################################################################################
- # #
- # FROM MAINTAINER RUN CMD EXPOSE ENV ARG COPY ADD LABEL ENTRYPOINT VOLUME #
- # #
- #######################################################################################
- #####################################################################################
- FROM scratch
- MAINTAINER Marc <teste74@hotmail.fr>
- #System Alpine extrait a la racine
- ADD alpine-minirootfs-3.12.0-x86_64.tar.gz /
- #Mot de passe du compte root
- RUN echo 'root:admin' | chpasswd
- #####################################################################################
- #Installation de paquet
- RUN apk --update add --no-cache net-tools
- RUN apk --update add --no-cache openssh bash
- RUN sed -i s/#PermitRootLogin.*/PermitRootLogin\ yes/ /etc/ssh/sshd_config
- #Purge du cache
- #RUN rm -rf /var/lib/apt/lists/*
- #RUN rm /var/cache/apk/*
- EXPOSE 22
- #CMD /bin/sh
- CMD ["/usr/sbin/sshd", "-D"]
Add Comment
Please, Sign In to add comment