From 425ae606134cbee58c7f42042eaf2dad9501a232 Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 9 Feb 2021 20:45:38 -0800 Subject: [PATCH] 0.4 release, however its not yet optimized ata ll for size --- Freechat/Dockerfile | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Freechat/Dockerfile b/Freechat/Dockerfile index df2e0f1..8e4f4ca 100644 --- a/Freechat/Dockerfile +++ b/Freechat/Dockerfile @@ -1,20 +1,22 @@ FROM debian:sid-slim # Pre-reqs for sql and building later on -RUN apt-get update && apt-get install \ - git curl \ +RUN apt-get update && apt-get upgrade -y && apt-get install \ + git curl python3 pkg-config \ libmysqlclient-dev build-essential \ - libssl-dev ca-certificates \ - -y --no-install-recommends && rm -rf /var/lib/apt/lists/* + libssl-dev ca-certificates gnupg\ + -y --no-install-recommends # Setup node -RUN apt-get install nodejs npm - -y --no-install-recommends && rm -rf /var/lib/apt/lists/* +# grab key +RUN curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - +# add binary & source ppa +RUN echo "deb https://deb.nodesource.com/node_14.x sid main" > /etc/apt/sources.list.d/nodesource.list +RUN echo "deb-src https://deb.nodesource.com/node_14.x sid main" >> /etc/apt/sources.list.d/nodesource.list -# Setup Python -RUN apt-get install python - -y --no-install-recommends && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install nodejs \ + -y --no-install-recommends # Setup rust RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \ @@ -26,5 +28,5 @@ RUN git clone https://gitlab.com/shockrah/freechat /opt/freechat/ WORKDIR /opt/freechat/ RUN bash docker-auto-build.sh --no-cargo-cache -COPY sample.env /opt/freechat/.env - +# Clean up from the apt-gets and things we don't do this +RUN rm -rf /var/lib/apt/lists/*