Create Dockerfile

Add Dockerfile
This commit is contained in:
M0VUB 2022-01-23 23:12:03 +00:00 committed by GitHub
parent c05d8fed5a
commit e127be562d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM python:3.9-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/ShaYmez/hblink3 && \
cd /opt/hblink3 && \
pip install --no-cache-dir -r requirements.txt && \
apk del git gcc musl-dev && \
chown -R radio: /opt/hblink3
USER radio
ENTRYPOINT [ "/entrypoint" ]