dockers/Freechat/Dockerfile

31 lines
780 B
Docker
Raw Normal View History

FROM debian:sid-slim
2020-08-03 02:16:30 +00:00
# Pre-reqs for sql and building later on
RUN apt-get update && apt-get install \
git curl \
libmysqlclient-dev build-essential \
libssl-dev ca-certificates \
-y --no-install-recommends && rm -rf /var/lib/apt/lists/*
2020-08-03 02:16:30 +00:00
# Setup node
RUN apt-get install nodejs npm
-y --no-install-recommends && rm -rf /var/lib/apt/lists/*
# Setup Python
RUN apt-get install python
-y --no-install-recommends && rm -rf /var/lib/apt/lists/*
# Setup rust
2020-08-03 02:16:30 +00:00
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
sh -s -- -y --default-toolchain stable
2020-08-03 02:16:30 +00:00
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
COPY sample.env /opt/freechat/.env