Compare commits

..

1 Commits

Author SHA1 Message Date
7dda69964c Update ubuntu Docker tag to v24
Some checks failed
Build/Push (master) / changes (pull_request) Has been cancelled
Build/Push (master) / build-docker (pull_request) Has been cancelled
2025-03-24 23:23:13 +00:00

View File

@@ -2,20 +2,14 @@ FROM ubuntu:24.04
ARG DEBIAN_FRONTEND="noninteractive" ARG DEBIAN_FRONTEND="noninteractive"
# Install prerequisites and curl RUN set -ex; \
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 update && \
# Download and install dumb-init manually based on architecture apt-get -y install software-properties-common && \
arch=$(dpkg --print-architecture) && \ add-apt-repository -u ppa:deluge-team/stable && \
if [ "$arch" = "arm64" ]; then arch="aarch64"; fi && \ 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 && \
curl -Lo /tmp/dumb-init.deb "https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_${arch}.deb" && \ echo "Cleanup"; \
dpkg -i /tmp/dumb-init.deb && rm -f /tmp/dumb-init.deb && \
# 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/* && \ rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* && \
echo "Adding user" && \ echo "Adding user"; \
groupmod -g 1000 users && \ groupmod -g 1000 users && \
useradd -u 911 -U -d /config -s /bin/false abc && \ useradd -u 911 -U -d /config -s /bin/false abc && \
usermod -G users abc usermod -G users abc
@@ -57,4 +51,4 @@ HEALTHCHECK --interval=1m CMD /etc/scripts/healthcheck.sh
# Deluge Deamon and web # Deluge Deamon and web
EXPOSE 8112 58846 EXPOSE 8112 58846
CMD ["/usr/local/bin/dumb-init", "/etc/openvpn/init.sh"] CMD ["dumb-init", "/etc/openvpn/init.sh"]