Add mkdocs build process

This commit is contained in:
Late Night Defender 2024-06-21 16:17:07 +07:00
parent 883fdc6ad5
commit e5f8bba7d9
2 changed files with 21 additions and 0 deletions

13
Dockerfile Normal file
View file

@ -0,0 +1,13 @@
FROM docker.io/library/nginx:alpine
RUN apk add mkdocs
RUN mkdir -p /opt/quadlet-examples.techtransthai.org
COPY . /opt/quadlet-examples.techtransthai.org
WORKDIR /opt/quadlet-examples.techtransthai.org
RUN mkdocs build
RUN cp -r site/* /usr/share/nginx/html

8
install.sh Executable file
View file

@ -0,0 +1,8 @@
systemctl --user stop quadlet-examples
cp quadlet-examples.container ~/.config/containers/systemd
systemctl --user daemon-reload
podman build -t quadlet-examples .
systemctl --user start quadlet-examples