From 7f19528ebb1478871e3239859ba437d5620aa17a Mon Sep 17 00:00:00 2001 From: A B Date: Mon, 30 Oct 2023 21:55:55 +0000 Subject: [PATCH] Fix image size --- Dockerfile | 4 ++-- requirements.txt | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0c85582..9ca73b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,8 @@ FROM python:slim WORKDIR /app COPY requirements.txt ./ -RUN apt update && apt install -y make clang libglib2.0-dev bluez dbus -RUN pip install --no-cache-dir -r requirements.txt +RUN apt update && apt install --no-install-recommends -y make clang libglib2.0-dev bluez dbus && pip install --no-cache-dir -r requirements.txt && apt remove -y make clang libglib2.0-dev && apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt/lists/* +#RUN pip install --no-cache-dir -r requirements.txt COPY . . diff --git a/requirements.txt b/requirements.txt index e498c67..766c391 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ prometheus_client bluepy -requests