Reduce image size by removing apt cache.

This commit is contained in:
yohan 2024-06-09 09:42:52 +02:00
parent 5f9f8b4bb8
commit a64ca97947

View File

@ -2,7 +2,7 @@ FROM debian:bookworm
MAINTAINER yohan <783b8c87@scimetis.net>
ENV DEBIAN_FRONTEND noninteractive
ENV TZ Europe/Paris
RUN apt-get update && apt-get -y install curl gunicorn sqlite3 python3-pip python3-requests python3-yaml python3-flask python3-serial udev ow-shell
RUN apt-get update && apt-get -y install curl gunicorn sqlite3 python3-pip python3-requests python3-yaml python3-flask python3-serial udev ow-shell; rm -rf /var/lib/apt/lists/*
ENV PIP_BREAK_SYSTEM_PACKAGES 1
RUN pip install teleinfo
WORKDIR /root