From 0e3718a96d8effbfed60e1457503614bc2194877 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 7 Feb 2021 23:13:59 +0000 Subject: [PATCH] |Dpc --- docker-configs/Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docker-configs/Dockerfile diff --git a/docker-configs/Dockerfile b/docker-configs/Dockerfile new file mode 100644 index 0000000..d12d380 --- /dev/null +++ b/docker-configs/Dockerfile @@ -0,0 +1,17 @@ +FROM python:3.7-alpine + +COPY entrypoint /entrypoint + +RUN adduser -D -u 54000 radio && \ + apk update && \ + apk add git gcc musl-dev && \ + cd /opt && \ + git clone https://github.com/hacknix/freedmr && \ + cd /opt/freedmr && \ + pip install --no-cache-dir -r requirements.txt && \ + apk del git gcc musl-dev && \ + chown -R radio: /opt/freedmr + +USER radio + +ENTRYPOINT [ "/entrypoint" ]