mirror of
https://github.com/ShaYmez/hblink3.git
synced 2024-11-23 16:28:40 -05:00
f00d29e8a0
message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # On branch private-call-dev # Your branch is ahead of 'origin/private-call-dev' by 1 commit. # (use "git push" to publish your local commits) #
31 lines
738 B
Docker
Executable File
31 lines
738 B
Docker
Executable File
FROM python:3.7-slim-stretch
|
|
|
|
RUN apt update && \
|
|
apt install -y git && \
|
|
cd /usr/src/ && \
|
|
git clone https://github.com/n0mjs710/dmr_utils3 && \
|
|
cd /usr/src/dmr_utils3 && \
|
|
./install.sh && \
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
cd /opt && \
|
|
rm -rf /usr/src/dmr_utils3 && \
|
|
git clone https://github.com/n0mjs710/hblink3
|
|
ENV AAA BBBB
|
|
RUN cd /opt/hblink3/ && \
|
|
sed -i s/.*python.*//g requirements.txt && \
|
|
pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
ADD entrypoint /entrypoint
|
|
|
|
RUN adduser -u 54000 radio && \
|
|
adduser radio radio && \
|
|
chmod 755 /entrypoint && \
|
|
chown radio:radio /entrypoint && \
|
|
chown radio /opt/hblink3
|
|
|
|
USER radio
|
|
EXPOSE 54000
|
|
|
|
ENTRYPOINT [ "/entrypoint" ]
|