From 5b0509a9d0411038f0ecf94d4dbfd70d88448632 Mon Sep 17 00:00:00 2001 From: dany Date: Fri, 5 Aug 2022 11:57:01 +0200 Subject: [PATCH] Update 'Dockerfile' --- Dockerfile | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index a414c05..4d197ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,25 +26,12 @@ ARG ARCH #copy all necessary libraries COPY --from=deploy-env /ulib/* /lib/ COPY --from=deploy-env /bin/wget /bin/ - -# copy antd-server -COPY /var/jenkins_home/workspace/ant-http/build/$ARCH/opt/* /opt/ -COPY /var/jenkins_home/workspace/ant-http/build/$ARCH/usr/* /opt/ -# copy lua plugin -COPY /var/jenkins_home/workspace/antd-lua-plugin/build/$ARCH/* / -# copy tunnel plugin -COPY /var/jenkins_home/workspace/antd-tunnel-plugin/build/$ARCH/* / -# publishers -COPY /var/jenkins_home/workspace/antd-tunnel-publishers/build/$ARCH/* / -# webapp -RUN mkdir -p /opt/www/htdocs/{os,silk} -COPY /var/jenkins_home/workspace/antd-web-apps/build/opt/www/htdocs/os/* /opt/www/htdocs/os/ -COPY /var/jenkins_home/workspace/antd-web-apps/build/opt/www/htdocs/silk/* /opt/www/htdocs/silk/ -COPY /var/jenkins_home/workspace/antd-web-apps/build/opt/www/htdocs/mimes.json /opt/www/htdocs/mimes.json -RUN rm -rf /opt/www/htdocs/os/rst -# antos -COPY /var/jenkins_home/workspace/antos/build/* / +# copy backend +COPY antos/backend/$ARCH/* / +# copy frontend +COPY antos/frontend/* / RUN chown -R root:root /opt/www/htdocs/ +RUN rm -rf /etc/systemd COPY start.sh /start.sh RUN chmod 700 /start.sh ENTRYPOINT /start.sh