2020-08-03 03:11:10 +00:00
|
|
|
FROM debian:sid-slim
|
2020-08-03 02:16:30 +00:00
|
|
|
|
|
|
|
# Pre-reqs for sql and building later on
|
2021-02-10 04:45:38 +00:00
|
|
|
RUN apt-get update && apt-get upgrade -y && apt-get install \
|
|
|
|
git curl python3 pkg-config \
|
2021-02-10 03:37:47 +00:00
|
|
|
libmysqlclient-dev build-essential \
|
2021-02-10 04:45:38 +00:00
|
|
|
libssl-dev ca-certificates gnupg\
|
|
|
|
-y --no-install-recommends
|
2020-08-03 02:16:30 +00:00
|
|
|
|
2021-02-10 03:37:47 +00:00
|
|
|
|
|
|
|
# Setup node
|
2021-02-10 04:45:38 +00:00
|
|
|
# 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
|
2021-02-10 03:37:47 +00:00
|
|
|
|
2021-02-10 04:45:38 +00:00
|
|
|
RUN apt-get update && apt-get install nodejs \
|
|
|
|
-y --no-install-recommends
|
2021-02-10 03:37:47 +00:00
|
|
|
|
|
|
|
# Setup rust
|
2020-08-03 02:16:30 +00:00
|
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
|
2021-02-10 03:37:47 +00:00
|
|
|
sh -s -- -y --default-toolchain stable
|
2020-08-03 02:16:30 +00:00
|
|
|
|
|
|
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
|
|
|
|
2021-02-10 03:37:47 +00:00
|
|
|
RUN git clone https://gitlab.com/shockrah/freechat /opt/freechat/
|
|
|
|
WORKDIR /opt/freechat/
|
|
|
|
RUN bash docker-auto-build.sh --no-cargo-cache
|
|
|
|
|
2021-02-10 04:45:38 +00:00
|
|
|
# Clean up from the apt-gets and things we don't do this
|
|
|
|
RUN rm -rf /var/lib/apt/lists/*
|