Update Dockerfile

Update docker
This commit is contained in:
M0VUB 2024-05-23 22:18:41 +01:00 committed by GitHub
parent dfb7d8824d
commit c37d2d710e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 11 deletions

View File

@ -17,20 +17,21 @@
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
###############################################################################
FROM python:alpine3.17
FROM python:alpine3.18
COPY entrypoint /entrypoint
RUN adduser -D -u 54000 radio
RUN apk update && \
apk add git gcc musl-dev libffi-dev openssl-dev cargo && \
pip install --upgrade pip && \
pip cache purge && \
git clone https://github.com/shaymez/HBMonv2.git /hbmon && \
cd /hbmon && \
pip install --no-cache-dir -r requirements.txt && \
apk del git gcc musl-dev && \
chown -R radio /hbmon
RUN adduser -D -u 54000 radio && \
apk update && \
apk add git gcc musl-dev && \
pip install --upgrade pip && \
pip cache purge && \
cd /opt && \
git clone https://github.com/shaymez/HBMonv2.git /hbmon && \
cd /hbmon && \
pip install --no-cache-dir -r requirements.txt && \
apk del git gcc musl-dev && \
chown -R radio: /hbmon
USER radio