From 7e166f5eac9fe446fd20689f84ae79dc0f0180a3 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sat, 1 May 2021 16:23:36 -0700 Subject: [PATCH] Not removing ca-certificates since python3-pip and nodejs depend on it --- freechat-pipeline/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/freechat-pipeline/Dockerfile b/freechat-pipeline/Dockerfile index 1a8bd2d..009bebf 100644 --- a/freechat-pipeline/Dockerfile +++ b/freechat-pipeline/Dockerfile @@ -12,11 +12,11 @@ RUN apt-get update && apt-get upgrade -y && apt-get install \ python3 python3-pip \ -y --no-install-recommends && \ pip3 install virtualenv + # Install virtualenv as its semi-required for python packages in freechat # This is a (very) small goal: removing all python dependancies outside of testing # Because frankly Rust binaries + Node BS + Python is just too awful to maintain -# Setup node # grab key RUN curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \ echo "deb https://deb.nodesource.com/node_14.x sid main" > /etc/apt/sources.list.d/nodesource.list && \ @@ -43,7 +43,9 @@ RUN mkdir /opt/mysql-setup && \ -RUN apt-get remove curl gnupg ca-certificates -y && apt-get autoremove -y && \ +# NOTE Before we remove things we don't need we have to first mark nodejs python3-pip +RUN apt-mark hold python3-pip nodejs && \ + apt-get remove curl gnupg -y && apt-get autoremove -y && \ rm -rf /var/lib/apt/lists/* # The entrypoint script not only starts the mysql service for us but it also gives