FROM debian:sid COPY ./id_rsa.pub /id_rsa.pub COPY ./configuradorfnmt_1.0.1-0_amd64.deb.sha512sum /configuradorfnmt_1.0.1-0_amd64.deb.sha512sum ENV DEBIAN_FRONTEND=noninteractive RUN apt update RUN apt dist-upgrade -y RUN apt install -y curl RUN curl -O -L 'https://descargas.cert.fnmt.es/Linux/configuradorfnmt_1.0.1-0_amd64.deb' RUN [ "$(sha512sum /configuradorfnmt_1.0.1-0_amd64.deb | awk '{ print $1 }' )" = "$(cat /configuradorfnmt_1.0.1-0_amd64.deb.sha512sum | awk '{ print $1 }')" ] RUN apt install -y openssh-server RUN useradd -m sergio -s /bin/bash && su sergio -c "mkdir ~/.ssh" RUN cat /id_rsa.pub >> /home/sergio/.ssh/authorized_keys RUN apt install -y libgtk2.0-0 RUN apt install -y libcanberra-gtk-module RUN apt install -y libcanberra-gtk3-module RUN apt install -y libpcsclite1 RUN apt install -y firefox RUN apt install -y gconf2 RUN dpkg -i /configuradorfnmt_1.0.1-0_amd64.deb RUN ssh-keygen -A RUN apt-get install -y xorg RUN mkdir -p /run/sshd RUN apt install -y openbox RUN echo "X11UseLocalhost no" >> /etc/ssh/sshd_config EXPOSE 22/tcp CMD ["/usr/sbin/sshd", "-D"]