zeiterfassung/Dockerfile

22 lines
461 B
Docker

FROM python:latest
RUN apt update && apt upgrade -y
RUN apt install locales -y
RUN mkdir /app
RUN mkdir /.venv
RUN mkdir /backup
RUN mkdir /settings
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
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 ["python", "/app/main.py"]