Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hvalev authored Sep 17, 2023
1 parent 8ca584c commit 8c0afe8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
CMD [ "python3", "-u", "dht22mqtt.py" ]

0 comments on commit 8c0afe8

Please sign in to comment.