2021-09-20 23:29:44 +02:00
|
|
|
FROM ubuntu:focal AS deploy-env
|
2022-08-18 09:44:25 +02:00
|
|
|
RUN apt-get update && apt-get --yes --no-install-recommends install libsqlite3-0 zlib1g libreadline8 libssl1.1 wget libvncclient1 libjpeg-turbo8
|
2021-09-20 23:29:44 +02:00
|
|
|
RUN apt clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN mkdir /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libsqlite3* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libreadline* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libncurse* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libz* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libcrypt* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libdl* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libm* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libpthread* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libssl* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libc* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libgcc* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/ld* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libpcre* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libuuid* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libidn2* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libpsl* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libunistring* /ulib
|
2022-08-18 09:44:25 +02:00
|
|
|
RUN cp -rf /lib/*-linux-*/libjpeg* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libvncclient* /ulib
|
2022-08-18 09:58:49 +02:00
|
|
|
|
|
|
|
RUN cp -rf /lib/*-linux-*/libgcrypt* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libsasl2* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/liblzo2* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libgnutls* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libgpg-error* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libp11-kit* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libtasn1* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libnettle* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libhogweed* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libgmp* /ulib
|
|
|
|
RUN cp -rf /lib/*-linux-*/libffi* /ulib
|
|
|
|
|
2022-08-05 12:43:27 +02:00
|
|
|
RUN mkdir /platform
|
2022-08-05 12:45:29 +02:00
|
|
|
COPY antos/ /
|
2022-08-05 12:46:48 +02:00
|
|
|
RUN cp /backend/$(uname -m)/* /platform -rf
|
2021-03-27 16:32:30 +01:00
|
|
|
FROM busybox:stable-glibc
|
2022-08-05 11:44:52 +02:00
|
|
|
|
2021-03-27 16:32:30 +01:00
|
|
|
#copy all necessary libraries
|
|
|
|
COPY --from=deploy-env /ulib/* /lib/
|
2021-03-27 17:40:48 +01:00
|
|
|
COPY --from=deploy-env /bin/wget /bin/
|
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 12:06:45 +02:00
|
|
|
RUN rm /etc/systemd -rf
|
2022-08-05 11:57:01 +02:00
|
|
|
# copy frontend
|
2022-08-05 12:08:31 +02:00
|
|
|
COPY antos/frontend/ /
|
2021-09-20 23:29:44 +02:00
|
|
|
RUN chown -R root:root /opt/www/htdocs/
|
2022-08-05 11:57:01 +02:00
|
|
|
RUN rm -rf /etc/systemd
|
2021-03-27 16:32:30 +01:00
|
|
|
COPY start.sh /start.sh
|
|
|
|
RUN chmod 700 /start.sh
|
2021-03-24 20:27:43 +01:00
|
|
|
ENTRYPOINT /start.sh
|