2020-04-07 14:01:01 -04:00
|
|
|
FROM registry.gitlab.com/retroshare/retroshare:base
|
|
|
|
|
|
|
|
RUN apt-get update -y && apt-get upgrade -y
|
|
|
|
|
2023-11-26 18:06:12 -05:00
|
|
|
ARG REPO_URL=https://github.com/RetroShare/RetroShare.git
|
2020-04-07 14:01:01 -04:00
|
|
|
ARG REPO_BRANCH=master
|
|
|
|
RUN \
|
|
|
|
cd RetroShare && git remote add testing $REPO_URL && \
|
|
|
|
git fetch --tags testing $REPO_BRANCH && \
|
2020-04-20 09:16:20 -04:00
|
|
|
git reset --hard testing/$REPO_BRANCH && \
|
2023-11-26 18:06:12 -05:00
|
|
|
git submodule update --init \
|
|
|
|
libbitdht/ libretroshare/ openpgpsdk/ retroshare-webui/ && \
|
2020-04-20 09:16:20 -04:00
|
|
|
git --no-pager log --max-count 1
|
2020-04-07 14:01:01 -04:00
|
|
|
RUN \
|
|
|
|
mkdir RetroShare-build && cd RetroShare-build && \
|
2022-02-25 10:57:07 -05:00
|
|
|
cmake -B. -S../RetroShare/retroshare-service \
|
2023-11-26 18:06:12 -05:00
|
|
|
-DRS_FORUM_DEEP_INDEX=ON -DRS_JSON_API=ON -DRS_WEBUI=ON \
|
2022-02-25 12:26:42 -05:00
|
|
|
-DRS_WARN_DEPRECATED=OFF -DRS_WARN_LESS=ON && \
|
2022-02-25 10:57:07 -05:00
|
|
|
make -j$(nproc) && make install && \
|
2020-04-07 14:01:01 -04:00
|
|
|
cd .. && rm -rf RetroShare-build
|