From 0a7382af4dfb5bfc55b37ddaccebb848c34e7b1c Mon Sep 17 00:00:00 2001 From: Lukas Bernhard Date: Fri, 1 Nov 2024 10:10:04 +0100 Subject: [PATCH] force install local times --- schafkopf/scheduler/Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/schafkopf/scheduler/Dockerfile b/schafkopf/scheduler/Dockerfile index a1a0025..c4e31c6 100644 --- a/schafkopf/scheduler/Dockerfile +++ b/schafkopf/scheduler/Dockerfile @@ -4,19 +4,19 @@ WORKDIR /app # https://docs.aws.amazon.com/lambda/latest/dg/python-image.html#python-image-clients RUN pip install awslambdaric +# Install required packages and generate locale RUN apt-get update && \ - apt-get install -y locales && \ - locale-gen de_DE.UTF-8 && \ - update-locale LANG=de_DE.UTF-8 LC_ALL=de_DE.UTF-8 + apt-get install -y --no-install-recommends locales && \ + rm -rf /var/lib/apt/lists/* && \ + echo "de_DE.UTF-8 UTF-8" > /etc/locale.gen && \ + locale-gen && \ + update-locale LANG=de_DE.UTF-8 -# Set environment variables for locale +# Set locale environment variables ENV LANG=de_DE.UTF-8 \ LC_ALL=de_DE.UTF-8 \ LANGUAGE=de_DE.UTF-8 -ENV POETRY_VIRTUALENVS_CREATE=false \ - POETRY_NO_INTERACTION=1 \ - POETRY_HOME="/opt/poetry" ENV PYTHONPATH="/app" RUN pip install poetry==1.8.4