Not removing ca-certificates since python3-pip and nodejs depend on it

This commit is contained in:
shockrah 2021-05-01 16:23:36 -07:00
parent 112723cba2
commit 7e166f5eac

View File

@ -12,11 +12,11 @@ RUN apt-get update && apt-get upgrade -y && apt-get install \
python3 python3-pip \ python3 python3-pip \
-y --no-install-recommends && \ -y --no-install-recommends && \
pip3 install virtualenv pip3 install virtualenv
# Install virtualenv as its semi-required for python packages in freechat # Install virtualenv as its semi-required for python packages in freechat
# This is a (very) small goal: removing all python dependancies outside of testing # 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 # Because frankly Rust binaries + Node BS + Python is just too awful to maintain
# Setup node
# grab key # grab key
RUN curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \ 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 && \ 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/* rm -rf /var/lib/apt/lists/*
# The entrypoint script not only starts the mysql service for us but it also gives # The entrypoint script not only starts the mysql service for us but it also gives