|
@ -230,41 +230,38 @@ if [ "$Wdir" == "$HOME" ]; then |
|
|
FROM $IMAGE_origin |
|
|
FROM $IMAGE_origin |
|
|
# |
|
|
# |
|
|
USER root |
|
|
USER root |
|
|
|
|
|
|
|
|
COPY $bootstrap /usr/bin |
|
|
COPY $bootstrap /usr/bin |
|
|
COPY $hostnames_get /usr/bin |
|
|
COPY $hostnames_get /usr/bin |
|
|
COPY $hostnames /usr/bin |
|
|
COPY $hostnames /usr/bin |
|
|
COPY install-vim-plugin.sh . |
|
|
COPY install-vim-plugin.sh . |
|
|
|
|
|
|
|
|
ENV NOTVISIBLE "in users profile" |
|
|
LABEL \ |
|
|
ENV USER1 docker |
|
|
org.opencontainers.image.title="Docker Image of TeXLive" \ |
|
|
ENV USER_HOME /home/docker |
|
|
org.opencontainers.image.authors="Swarmlab.io <rootapostolos@swarmlab.io>" |
|
|
ENV SSHDIR \${USER_HOME}/.ssh |
|
|
|
|
|
ENV PATH=${PATH}:/usr/local/texlive/bin/x86_64-linuxmusl:/usr/local/texlive/2020/bin/x86_64-linuxmusl |
|
|
ENV PATH=/usr/local/texlive/bin/x86_64-linuxmusl:/usr/local/texlive/2020/bin/x86_64-linuxmusl:${PATH} |
|
|
COPY ssh/ \${SSHDIR}/ |
|
|
|
|
|
|
|
|
COPY \ |
|
|
RUN export DEBIAN_FRONTEND=noninteractive \ |
|
|
setup.sh \ |
|
|
&& addgroup -S docker && adduser -S docker -G docker \ |
|
|
extrapackages \ |
|
|
&& rm -rf /usr/share/doc \ |
|
|
texlive.profile \ |
|
|
&& rm -rf /usr/share/man \ |
|
|
texlive_pgp_keys.asc \ |
|
|
&& rm -rf /usr/share/locale \ |
|
|
/ |
|
|
&& mkdir -p /var/run/sshd \ |
|
|
|
|
|
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ |
|
|
COPY fonts-extra/ /usr/share/fonts |
|
|
&& echo "export VISIBLE=now" >> /etc/profile \ |
|
|
COPY MastersDoctoralThesis.cls /usr/local/texlive/texmf-local/tex/latex/local/MastersDoctoralThesis.cls |
|
|
&& mkdir -p /home/docker/project \ |
|
|
COPY \ |
|
|
&& mkdir -p /etc/opt \ |
|
|
latex-clean \ |
|
|
&& echo "docker:docker" | chpasswd \ |
|
|
latex-pdf \ |
|
|
&& echo "StrictHostKeyChecking no" > \${SSHDIR}/config \ |
|
|
/usr/local/bin/ |
|
|
&& cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ |
|
|
|
|
|
&& chmod -R 600 \${SSHDIR}/* \ |
|
|
RUN /setup.sh |
|
|
&& chown -R \${USER1}:\${USER1} \${SSHDIR} |
|
|
|
|
|
|
|
|
WORKDIR /home |
|
|
COPY custom /tmp/bin |
|
|
VOLUME ["/home"] |
|
|
RUN /tmp/bin/setup.sh |
|
|
|
|
|
|
|
|
CMD ["tail","-f","/dev/null"] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
COPY .vimrc /home/docker |
|
|
|
|
|
EXPOSE 3787 |
|
|
|
|
|
EOF |
|
|
EOF |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|