From fe3a5370026a3b1378aed092d99ab1c528205596 Mon Sep 17 00:00:00 2001 From: Kostas Chatzikokolakis Date: Mon, 19 Feb 2024 17:24:06 +0200 Subject: [PATCH] docker: use 3.8-slim-buster (#342) --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index aa53a1b5..34169b69 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ # when building multiarch using buildx, then try this: # https://github.com/docker/buildx/issues/495#issuecomment-761562905 -FROM python:3.8-buster AS base +FROM python:3.8-slim-buster AS base ENV LANG C.UTF-8 ENV LC_ALL C.UTF-8 @@ -41,8 +41,8 @@ WORKDIR /home/mqtt_io COPY --from=requirements --chown=mqtt_io /home/mqtt_io/venv ./venv COPY --from=requirements /requirements.txt ./ -RUN venv/bin/python -m pip install --upgrade pip -RUN venv/bin/pip install -r requirements.txt +RUN venv/bin/python -m pip install --no-cache-dir --upgrade pip +RUN venv/bin/pip install --no-cache-dir -r requirements.txt COPY --chown=mqtt_io mqtt_io mqtt_io