From a602aded2caca383d5137f6bda55cff219a40343 Mon Sep 17 00:00:00 2001 From: Alexander Malzkuhn Date: Thu, 30 Oct 2025 14:08:15 +0100 Subject: [PATCH] Docker Dateien angepasst --- Dockerfile | 13 ++++++------- docker-compose.yml | 4 ++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index ff4197a..d892ad0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,13 @@ -FROM debian:latest +FROM python:latest RUN apt update && apt upgrade -y -RUN apt install python3 python3-pip python3.11-venv locales -y +RUN apt install locales -y RUN mkdir /app RUN mkdir /.venv RUN mkdir /backup RUN mkdir /settings -RUN python3 -m venv /.venv -RUN /.venv/bin/pip install nicegui -RUN /.venv/bin/pip install segno -RUN /.venv/bin/pip install python-dateutil +RUN pip install nicegui +RUN pip install segno +RUN pip install python-dateutil RUN sed -i '/de_DE.UTF-8/s/^# //g' /etc/locale.gen && \ locale-gen @@ -19,4 +18,4 @@ ENV LC_ALL de_DE.UTF-8 COPY main.py /app/main.py COPY lib /app/lib/ EXPOSE 8090 -ENTRYPOINT ["/.venv/bin/python", "/app/main.py"] +ENTRYPOINT ["python", "/app/main.py"] diff --git a/docker-compose.yml b/docker-compose.yml index 4bf94ed..dc3a301 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ services: zeiterfassung: - image: gitea.am-td.de/alexander/zeiterfassung:beta-2025.0.1 + image: gitea.am-td.de/alexander/zeiterfassung:beta-2025.0.2 restart: always ports: - 8090:8090 @@ -11,4 +11,4 @@ services: - ./users:/users - ./backup:/backup - ./settings:/settings - - /etc/localtime:/etc/localtime:ro \ No newline at end of file + - /etc/localtime:/etc/localtime:ro