ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=22.04 |
ADD file:f7fa9c3fec404bf0500211305250f795384645b6032774d9641b0dae7d5fac61 in / |
CMD ["/bin/bash"] |
ARG TARGETARCH=arm64 |
ARG ARCH32=armhf |
RUN |2 TARGETARCH=arm64 ARCH32=armhf /bin/sh -c echo "当前构建架构: ${TARGETARCH}" # buildkit |
RUN |2 TARGETARCH=arm64 ARCH32=armhf /bin/sh -c echo "当前构建32架构: ${ARCH32}" # buildkit |
ADD overlay/dotnet-runtime-3.1.32-linux-arm64.tar.gz /root/dotnet # buildkit |
COPY overlay/libssl1.0.0_1.0.2g-1ubuntu4.20_arm64.deb /tmp # buildkit |
RUN |2 TARGETARCH=arm64 ARCH32=armhf /bin/sh -c apt update && dpkg --add-architecture ${ARCH32} && apt update && apt install -y --no-install-recommends libstdc++6 libstdc++6:${ARCH32} libc6:${ARCH32} libc6 libgcc-s1 libicu70 liblttng-ust1 zlib1g vim zip unzip wget openssh-server inetutils-ping inetutils-telnet && dpkg -i /tmp/libssl1.0.0_1.0.2g-1ubuntu4.20_${TARGETARCH}.deb && echo "PermitRootLogin yes\nPasswordAuthentication yes\n" >> /etc/ssh/sshd_config && echo root:123456 | chpasswd # buildkit |
COPY overlay/localtime /etc # buildkit |
COPY prog /home/ # buildkit |
WORKDIR /home |
CMD ["/home/start.sh"] |