|
|
@ -40,7 +40,8 @@ IMAGE_local="microservice-xelatexthesis" |
|
|
|
HYBRID_NETWORK="microservice-xelatexthesis" |
|
|
|
# dont edit |
|
|
|
#IMAGE_origin="hub.swarmlab.io:5480/hybrid-numpy" |
|
|
|
IMAGE_origin="hub.swarmlab.io:5480/xelatex-basegui" |
|
|
|
#IMAGE_origin="hub.swarmlab.io:5480/xelatex-basegui" |
|
|
|
IMAGE_origin="alpine:latest" |
|
|
|
bootstrap="sec_bootstrap" |
|
|
|
hostnames="auto_update_hosts" |
|
|
|
hostnames_get="get_hosts" |
|
|
@ -151,37 +152,32 @@ if [ -d "$Wdir/project" ]; then |
|
|
|
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}/ |
|
|
|
LABEL \ |
|
|
|
org.opencontainers.image.title="Docker Image of TeXLive" \ |
|
|
|
org.opencontainers.image.authors="Swarmlab.io <rootapostolos@swarmlab.io>" |
|
|
|
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive \ |
|
|
|
&& rm -rf /usr/share/doc \ |
|
|
|
&& rm -rf /usr/share/man \ |
|
|
|
&& rm -rf /usr/share/locale \ |
|
|
|
&& mkdir -p /var/run/sshd \ |
|
|
|
&& addgroup -S docker && adduser -S docker -G docker \ |
|
|
|
&& 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} |
|
|
|
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 custom /tmp/bin |
|
|
|
RUN /tmp/bin/setup.sh |
|
|
|
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 |
|
|
|
|
|
|
|
COPY .vimrc /home/docker |
|
|
|
EXPOSE 3787 |
|
|
|
WORKDIR /home |
|
|
|
VOLUME ["/home"] |
|
|
|
|
|
|
|
CMD ["tail","-f","/dev/null"] |
|
|
|
EOF |
|
|
|
fi |
|
|
|
else |
|
|
|