-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (30 loc) · 1.31 KB
/
Dockerfile
File metadata and controls
39 lines (30 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# untisplanner - Dockerfile
# use official Python runtime as base image
FROM python:3.14-slim
LABEL org.opencontainers.image.title="UntisPlanner"
LABEL org.opencontainers.image.description="Simple appointment planner using timetables from a WebUntis server"
LABEL org.opencontainers.image.version="0.1.0"
LABEL org.opencontainers.image.authors="wichmann@bbs-os-brinkstr.de"
LABEL org.opencontainers.image.licenses="MIT License"
LABEL org.opencontainers.image.documentation="https://github.com/wichmann/untis-planner/blob/master/README.md"
LABEL org.opencontainers.image.source="https://github.com/wichmann/untis-planner"
WORKDIR /app
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
# copy all necessary files into the image
COPY main.py /app/
COPY untisplanner.py /app/
COPY fullcalendar.py /app/
COPY fullcalendar.js /app/
COPY lib/ /app/lib/
COPY webuntis-config.ini /app/
COPY requirements.txt /app/
COPY README.md /app/
COPY LICENSE /app/
COPY pyproject.toml /app/
RUN pip install --no-cache-dir -r requirements.txt
# expose port used by NiceGUI (default: 8080)
EXPOSE 8080
# add health check using NiceGUI's built-in diagnostics endpoint
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \
CMD curl -f http://localhost:8080/ || exit 1
ENTRYPOINT ["python", "-u", "main.py"]