2023-05-25 13:45:54 -04:00
|
|
|
FROM python:alpine3.18
|
2022-01-23 18:12:03 -05:00
|
|
|
|
|
|
|
COPY entrypoint /entrypoint
|
|
|
|
|
|
|
|
RUN adduser -D -u 54000 radio && \
|
|
|
|
apk update && \
|
|
|
|
apk add git gcc musl-dev && \
|
2023-05-25 13:46:36 -04:00
|
|
|
pip install --upgrade pip && \
|
2023-08-05 17:07:16 -04:00
|
|
|
pip cache purge && \
|
2022-01-23 18:12:03 -05:00
|
|
|
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" ]
|