IPSCConnect/Dockerfile

37 lines
1.0 KiB
Docker
Raw Permalink Normal View History

2021-09-04 21:29:32 -04:00
FROM debian:bullseye-slim
COPY entrypoint /entrypoint
COPY config /opt/
RUN useradd -u 54000 radio && \
apt-get update && \
2021-10-09 16:10:15 -04:00
apt-get install -y git gcc g++ python2 python2-dev wget make && \
2021-09-04 21:29:32 -04:00
cd /opt && \
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
python2 ./get-pip.py && \
pip install twisted && \
git clone https://gitlab.hacknix.net/hacknix/DMRlink.git && \
2021-09-04 21:29:32 -04:00
cd /opt/DMRlink && \
git checkout IPSC_Bridge && \
sh ./mk-dmrlink && \
cd .. && \
git clone https://gitlab.hacknix.net/hacknix/HBLink.git && \
2021-09-04 21:29:32 -04:00
cd HBLink && \
git checkout HB_Bridge && \
sh ./mk-required && \
cd .. && \
2021-10-09 15:52:30 -04:00
git clone https://github.com/g4klx/DMRGateway.git && \
2021-09-04 21:29:32 -04:00
cd DMRGateway && \
git reset --hard 6e89e4922f8c5eb7ec3797729a82137d70bc8940 && \
make && \
2021-10-10 08:51:39 -04:00
apt-get remove -y gcc g++ make git wget && \
2021-09-04 21:29:32 -04:00
apt-get -y autoremove && \
apt-get -y purge && \
rm -rvf /var/cache/apt/archives/* && \
chown 54000 /opt/* -R && \
chmod 777 /opt/ -R
USER radio
ENTRYPOINT [ "/entrypoint" ]