From b88992632f1feb8e8c4eee3c157d4c83b4d1b8c3 Mon Sep 17 00:00:00 2001 From: DyonR Date: Sun, 16 Aug 2020 02:49:50 +0200 Subject: [PATCH] More cleanup in RUN --- Dockerfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c143b9c..c7de942 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,7 @@ RUN usermod -u 99 nobody # Make directories RUN mkdir -p /downloads /config/qBittorrent /etc/openvpn /etc/qbittorrent -RUN cd /opt \ - && apt update \ +RUN apt update \ && apt -y upgrade \ && apt -y install --no-install-recommends \ curl \ @@ -61,7 +60,13 @@ RUN cd /opt \ python3 \ qtbase5-dev \ qttools5-dev \ - libqt5svg5-dev + libqt5svg5-dev \ + && apt-get clean \ + && apt -y autoremove \ + && rm -rf \ + /var/lib/apt/lists/* \ + /tmp/* \ + /var/tmp/* RUN echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable-wireguard.list \ && printf 'Package: *\nPin: release a=unstable\nPin-Priority: 150\n' > /etc/apt/preferences.d/limit-unstable \ @@ -99,4 +104,4 @@ RUN chmod +x /etc/qbittorrent/*.sh /etc/qbittorrent/*.init /etc/openvpn/*.sh EXPOSE 8080 EXPOSE 8999 EXPOSE 8999/udp -CMD ["/bin/bash", "/etc/openvpn/start.sh"] \ No newline at end of file +CMD ["/bin/bash", "/etc/openvpn/start.sh"]