2021-01-17 16:01:33 -05:00
|
|
|
FROM python:3.7-slim-buster
|
2021-01-21 17:54:30 -05:00
|
|
|
#FROM python:3.7-alpine
|
2019-04-13 13:59:03 -04:00
|
|
|
|
2021-01-17 16:01:33 -05:00
|
|
|
COPY entrypoint /entrypoint
|
|
|
|
|
|
|
|
RUN useradd -u 54000 radio && \
|
2021-01-21 17:54:30 -05:00
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y git gcc && \
|
2021-01-21 14:51:04 -05:00
|
|
|
cd /opt && \
|
|
|
|
git clone https://github.com/hacknix/freedmr && \
|
|
|
|
cd freedmr && \
|
|
|
|
pip install --no-cache-dir -r requirements.txt && \
|
2021-01-21 17:54:30 -05:00
|
|
|
apt-get purge -y git gcc libx11-6 && \
|
|
|
|
apt-get clean -y && \
|
|
|
|
apt-get autoremove -y && \
|
2021-01-21 14:51:04 -05:00
|
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
|
|
chown -R radio: /opt/freedmr
|
2021-01-17 16:01:33 -05:00
|
|
|
|
2019-04-13 13:59:03 -04:00
|
|
|
EXPOSE 54000
|
|
|
|
|
2021-01-21 14:51:04 -05:00
|
|
|
USER radio
|
|
|
|
|
2019-04-13 13:59:03 -04:00
|
|
|
ENTRYPOINT [ "/entrypoint" ]
|