try to fix multiarch build
This commit is contained in:
20
Dockerfile
20
Dockerfile
@@ -2,14 +2,20 @@ FROM ubuntu:22.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 /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/* && \
|
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