2023-11-21 14:48:15 +01:00
|
|
|
FROM ubuntu:jammy AS deploy-env
|
2022-10-05 21:21:02 +02:00
|
|
|
ARG tag
|
2023-11-21 14:48:15 +01:00
|
|
|
COPY deps/ /
|
|
|
|
|
|
|
|
RUN dpkg -i /libssl1.1_1.1.1f-$(uname -m).deb
|
|
|
|
# manual install libssl1.1
|
|
|
|
RUN apt-get update && apt-get --yes --no-install-recommends install libsqlite3-0 zlib1g libreadline8 wget libvncclient1 libjpeg-turbo8 openssh-client tar tree
|
2021-09-20 23:29:44 +02:00
|
|
|
RUN apt clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN mkdir /ulib
|
2022-09-20 15:03:25 +02:00
|
|
|
RUN cp -rf /lib/*-linux-*/libsqlite3*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libreadline*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libncurse*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libz*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libcrypt*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libdl*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libm*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libpthread*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libssl*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libc*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libgcc*.so* /ulib
|
2022-09-20 15:08:10 +02:00
|
|
|
RUN cp -rf /lib/*-linux-*/ld*.so* /ulib
|
2022-09-20 15:03:25 +02:00
|
|
|
RUN cp -rf /lib/*-linux-*/libpcre*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libuuid*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libidn2*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libpsl*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libunistring*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libjpeg*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libvncclient*.so* /ulib
|
2023-01-29 13:07:31 +01:00
|
|
|
RUN cp -rf /lib/*-linux-*/librt*.so* /ulib
|
2023-07-04 11:25:18 +02:00
|
|
|
RUN cp -rf /lib/*-linux-*/libstdc*.so* /ulib
|
2022-08-18 09:58:49 +02:00
|
|
|
|
2022-08-21 12:25:12 +02:00
|
|
|
# vnc client support
|
2022-09-20 15:03:25 +02:00
|
|
|
RUN cp -rf /lib/*-linux-*/libgcrypt*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libsasl2*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/liblzo2*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libgnutls*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libgpg-error*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libp11-kit*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libtasn1*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libnettle*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libhogweed*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libgmp*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libffi*.so* /ulib
|
2022-08-18 09:58:49 +02:00
|
|
|
|
2022-08-21 12:25:12 +02:00
|
|
|
# sshclient
|
2022-09-20 15:03:25 +02:00
|
|
|
RUN cp -rf /lib/*-linux-*/libselinux*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libresolv*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libgssapi_krb5*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libkrb5*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libk5crypto*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libcom_err*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libkrb5support*.so* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libkeyutils*.so* /ulib
|
2022-08-21 12:25:12 +02:00
|
|
|
|
2022-10-05 21:21:02 +02:00
|
|
|
|
|
|
|
# antos
|
2022-08-05 12:43:27 +02:00
|
|
|
RUN mkdir /platform
|
2022-10-05 21:21:02 +02:00
|
|
|
COPY antos-release/ /
|
|
|
|
RUN tar -xzf /build/$tag/AntOS_$(uname -m).tar.gz -C /platform/
|
2024-01-19 10:46:23 +01:00
|
|
|
RUN chown -R root:root /platform
|
2022-10-05 21:21:02 +02:00
|
|
|
RUN tree /platform
|
2024-01-19 10:46:23 +01:00
|
|
|
RUN ls -al /platform
|
2022-10-05 21:21:02 +02:00
|
|
|
|
2023-11-21 15:26:23 +01:00
|
|
|
FROM busybox:stable-glibc
|
2021-03-27 16:32:30 +01:00
|
|
|
#copy all necessary libraries
|
2022-09-20 15:16:10 +02:00
|
|
|
COPY --from=deploy-env /ulib/ /lib/
|
2021-03-27 17:40:48 +01:00
|
|
|
COPY --from=deploy-env /bin/wget /bin/
|
2022-08-21 12:25:12 +02:00
|
|
|
COPY --from=deploy-env /usr/bin/ssh /bin/
|
2022-08-21 12:34:08 +02:00
|
|
|
COPY --from=deploy-env /usr/bin/ssh-keygen /bin/
|
2022-08-21 13:34:12 +02:00
|
|
|
COPY --from=deploy-env /usr/bin/ssh-copy-id /bin/
|
2022-08-21 19:17:14 +02:00
|
|
|
COPY bash /bin/bash
|
2022-08-22 12:03:26 +02:00
|
|
|
COPY profile /etc/profile
|
2022-08-21 19:17:14 +02:00
|
|
|
RUN chmod a+x /bin/bash
|
2022-08-05 11:57:01 +02:00
|
|
|
# copy backend
|
2022-08-05 12:43:27 +02:00
|
|
|
COPY --from=deploy-env /platform/ /
|
2022-08-05 11:57:01 +02:00
|
|
|
# copy frontend
|
2022-08-18 11:05:06 +02:00
|
|
|
COPY antd-config.ini /opt/www/antd-config.ini
|
|
|
|
COPY runner.ini /opt/www/runner.ini
|
|
|
|
RUN chmod 744 /opt/www/antd-config.ini
|
|
|
|
RUN chmod 744 /opt/www/runner.ini
|
2022-10-05 21:21:02 +02:00
|
|
|
|
2021-03-27 16:32:30 +01:00
|
|
|
COPY start.sh /start.sh
|
|
|
|
RUN chmod 700 /start.sh
|
2023-11-21 14:48:15 +01:00
|
|
|
# start the entry point
|
2021-03-24 20:27:43 +01:00
|
|
|
ENTRYPOINT /start.sh
|