2021-02-11 02:01:08 +00:00
|
|
|
FROM rust:slim-buster
|
2020-08-03 02:16:30 +00:00
|
|
|
|
2021-02-11 02:01:08 +00:00
|
|
|
# required for building rust things and grabbing node
|
2021-02-10 04:45:38 +00:00
|
|
|
RUN apt-get update && apt-get upgrade -y && apt-get install \
|
2021-02-11 02:01:08 +00:00
|
|
|
git default-libmysqlclient-dev pkg-config \
|
|
|
|
curl libssl-dev ca-certificates gnupg \
|
2021-02-10 04:45:38 +00:00
|
|
|
-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
|
|
|
|
2021-02-11 02:01:08 +00:00
|
|
|
# Biuld all the projects required to run
|
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
|
2021-02-11 02:01:08 +00:00
|
|
|
RUN apt-get remove curl gnupg ca-certificates -y # will go unused in regular builds
|
|
|
|
RUN apt-get autoremove -y
|
2021-02-10 04:45:38 +00:00
|
|
|
RUN rm -rf /var/lib/apt/lists/*
|
2021-02-11 02:01:08 +00:00
|
|
|
|
|
|
|
|