2025-06-28 19:34:34 +02:00
|
|
|
FROM squidfunk/mkdocs-material
|
|
|
|
|
|
|
|
|
|
# Install inotify-tools for watching file changes
|
|
|
|
|
RUN apk add --no-cache inotify-tools
|
|
|
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
|
|
2025-06-28 22:20:26 +02:00
|
|
|
COPY site/ /build/
|
2025-06-28 19:34:34 +02:00
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
# Expose the port for mkdocs serve
|
|
|
|
|
EXPOSE 8000
|
|
|
|
|
|
|
|
|
|
# The entrypoint will run the initial setup and then start the server.
|
2025-06-28 22:20:26 +02:00
|
|
|
ENTRYPOINT ["mkdocs", "serve", "-a", "0.0.0.0:8000", "--dirtyreload"]
|