mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-06-30 05:02:59 +00:00
20 lines
528 B
Docker
20 lines
528 B
Docker
FROM squidfunk/mkdocs-material
|
|
|
|
# Install inotify-tools for watching file changes
|
|
RUN apk add --no-cache inotify-tools
|
|
|
|
WORKDIR /build
|
|
|
|
COPY site/requirements.txt /build/requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Expose the port for mkdocs serve
|
|
EXPOSE 8000
|
|
|
|
# Copy the watch script and make it executable
|
|
COPY scripts/watch.sh /usr/local/bin/watch.sh
|
|
RUN chmod +x /usr/local/bin/watch.sh
|
|
|
|
# The entrypoint will run the initial setup and then start the server.
|
|
ENTRYPOINT ["/usr/local/bin/watch.sh"]
|