diff --git a/Dockerfile b/Dockerfile index d33619a1a..56197c762 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,14 +2,20 @@ FROM ubuntu:22.04 ARG DEBIAN_FRONTEND="noninteractive" -RUN set -ex; \ - apt-get update && \ - apt-get -y install software-properties-common && \ +# Install prerequisites and curl +RUN apt-get update && apt-get -y install curl software-properties-common && \ add-apt-repository -u ppa:deluge-team/stable && \ - apt-get update && apt-get -y install dumb-init iputils-ping dnsutils bash jq net-tools openvpn curl ufw deluged deluge-web p7zip-full unrar unzip && \ - echo "Cleanup"; \ + apt-get update && \ + # Download and install dumb-init manually based on architecture + arch=$(dpkg --print-architecture) && \ + if [ "$arch" = "arm64" ]; then arch="aarch64"; fi && \ + curl -Lo /usr/local/bin/dumb-init "https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_${arch}" && \ + chmod +x /usr/local/bin/dumb-init && \ + # Install other dependencies + apt-get -y install iputils-ping dnsutils bash jq net-tools openvpn curl ufw deluged deluge-web p7zip-full unrar unzip && \ + echo "Cleanup" && \ rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* && \ - echo "Adding user"; \ + echo "Adding user" && \ groupmod -g 1000 users && \ useradd -u 911 -U -d /config -s /bin/false abc && \ usermod -G users abc @@ -51,4 +57,4 @@ HEALTHCHECK --interval=1m CMD /etc/scripts/healthcheck.sh # Deluge Deamon and web EXPOSE 8112 58846 -CMD ["dumb-init", "/etc/openvpn/init.sh"] \ No newline at end of file +CMD ["/usr/local/bin/dumb-init", "/etc/openvpn/init.sh"]