FROM debian:sid-slim # Pre-reqs for sql and building later on RUN apt-get update && apt-get upgrade -y && apt-get install \ git curl python3 pkg-config \ libmysqlclient-dev build-essential \ libssl-dev ca-certificates gnupg\ -y --no-install-recommends # Setup node # 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 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 | \ sh -s -- -y --default-toolchain stable ENV PATH="/root/.cargo/bin:${PATH}" RUN git clone https://gitlab.com/shockrah/freechat /opt/freechat/ WORKDIR /opt/freechat/ RUN bash docker-auto-build.sh --no-cargo-cache # Clean up from the apt-gets and things we don't do this RUN rm -rf /var/lib/apt/lists/*