From edffa4c1405e8ae5bdf128126c12beee42f58462 Mon Sep 17 00:00:00 2001 From: zeus Date: Wed, 15 Nov 2023 02:10:37 +0200 Subject: [PATCH] new makefile --- .../usr/share/swarmlab.io/sec/swarmlab-sec | 57 +++++++++---------- 1 file changed, 27 insertions(+), 30 deletions(-) diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index e717697..f2aea05 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -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 " + +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