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