RYSEN/Dockerfile

26 lines
630 B
Docker
Raw Normal View History

2021-01-17 16:01:33 -05:00
FROM python:3.7-slim-buster
2019-04-13 13:59:03 -04:00
2021-01-17 16:01:33 -05:00
COPY entrypoint /entrypoint
RUN useradd -u 54000 radio && \
apt update && \
2019-04-13 13:59:03 -04:00
apt install -y git && \
cd /usr/src/ && \
2021-01-17 16:01:33 -05:00
git clone https://github.com/hacknix/dmr_utils && \
cd /usr/src/dmr_utils && \
2019-04-13 13:59:03 -04:00
./install.sh && \
rm -rf /var/lib/apt/lists/* && \
cd /opt && \
2021-01-17 16:01:33 -05:00
rm -rf /usr/src/dmr_utils && \
git clone https://github.com/hacknix/freedmr && \
cd /opt/freedmr/ && \
2019-04-13 13:59:03 -04:00
sed -i s/.*python.*//g requirements.txt && \
2021-01-17 16:01:33 -05:00
pip install --no-cache-dir -r requirements.txt && \
chown radio /opt/freedmr
2019-04-13 13:59:03 -04:00
USER radio
2021-01-17 16:01:33 -05:00
2019-04-13 13:59:03 -04:00
EXPOSE 54000
ENTRYPOINT [ "/entrypoint" ]