FROM debian:latest RUN apt update && apt upgrade -y RUN apt install python3 python3-pip python3.11-venv 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 sed -i '/de_DE.UTF-8/s/^# //g' /etc/locale.gen && \ locale-gen ENV LANG de_DE.UTF-8 ENV LANGUAGE de_DE:de 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"]