Slight tweaks to docker setup and README.md

This commit is contained in:
Simon 2021-01-21 22:54:30 +00:00
parent be3f6ca4fb
commit 279185b0a2
2 changed files with 7 additions and 4 deletions

View File

@ -1,15 +1,18 @@
FROM python:3.7-slim-buster
#FROM python:3.7-alpine
COPY entrypoint /entrypoint
RUN useradd -u 54000 radio && \
apt update && \
apt install -y git gcc && \
apt-get update && \
apt-get install -y git gcc && \
cd /opt && \
git clone https://github.com/hacknix/freedmr && \
cd freedmr && \
pip install --no-cache-dir -r requirements.txt && \
apt autoremove -y git gcc && \
apt-get purge -y git gcc libx11-6 && \
apt-get clean -y && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* && \
chown -R radio: /opt/freedmr

View File

@ -49,7 +49,7 @@ Start your container, passing your configuration file.
```bash
cfg_file="/absolute/path/to/cfg/file"
docker run -v $cfg_file:/opt/freedmr/hblink.cfg -p 54000:54000 freedmr
docker run -v $cfg_file:/opt/freedmr/hblink.cfg -p 54000-54020:54000-54020/udp freedmr
```
Note that `$cfg_file` is used by the container's 'radio' user internally, so you may need to modify file permissions.