From 8c0afe85ffefdfe7dbf108ee372db23cd9994bd9 Mon Sep 17 00:00:00 2001 From: hvalev Date: Sun, 17 Sep 2023 11:07:26 +0200 Subject: [PATCH] Update Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9084ac6..e6deb37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,10 @@ FROM python:3.9.5-alpine3.12 COPY requirements.txt dht22mqtt.py gpiomapping.py ./ RUN apk add gcc musl-dev && \ + pip3 install --no-cache --upgrade pip && \ pip3 install -r requirements.txt --no-cache-dir && \ pip3 cache purge && \ apk del gcc musl-dev && \ rm -rf /var/lib/apk/lists/* && \ mkdir log && chmod 777 log/ -CMD [ "python3", "-u", "dht22mqtt.py" ] \ No newline at end of file +CMD [ "python3", "-u", "dht22mqtt.py" ]