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