Compare commits
7 Commits
7dda69964c
...
ab23b35825
Author | SHA1 | Date | |
---|---|---|---|
ab23b35825 | |||
b362934ce9 | |||
044a65a0d9 | |||
ce2f1a966e | |||
28d1519e75 | |||
69c54e53ae | |||
10d57f7e8e |
22
Dockerfile
22
Dockerfile
@@ -1,15 +1,21 @@
|
|||||||
FROM ubuntu:18.04
|
FROM ubuntu:24.04
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND="noninteractive"
|
ARG DEBIAN_FRONTEND="noninteractive"
|
||||||
|
|
||||||
RUN set -ex; \
|
# Install prerequisites and curl
|
||||||
apt-get update && \
|
RUN apt-get update && apt-get -y install curl software-properties-common && \
|
||||||
apt-get -y install software-properties-common && \
|
|
||||||
add-apt-repository -u ppa:deluge-team/stable && \
|
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 && \
|
apt-get update && \
|
||||||
echo "Cleanup"; \
|
# Download and install dumb-init manually based on architecture
|
||||||
|
arch=$(dpkg --print-architecture) && \
|
||||||
|
if [ "$arch" = "arm64" ]; then arch="aarch64"; fi && \
|
||||||
|
curl -Lo /tmp/dumb-init.deb "https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_${arch}.deb" && \
|
||||||
|
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
|
||||||
@@ -51,4 +57,4 @@ HEALTHCHECK --interval=1m CMD /etc/scripts/healthcheck.sh
|
|||||||
# Deluge Deamon and web
|
# Deluge Deamon and web
|
||||||
EXPOSE 8112 58846
|
EXPOSE 8112 58846
|
||||||
|
|
||||||
CMD ["dumb-init", "/etc/openvpn/init.sh"]
|
CMD ["/usr/local/bin/dumb-init", "/etc/openvpn/init.sh"]
|
||||||
|
Reference in New Issue
Block a user