Add container stuff

This commit is contained in:
Late Night Defender 2024-06-04 11:59:52 +07:00
parent 8b52830f2a
commit 6018f179d0
2 changed files with 26 additions and 0 deletions

13
docs/Dockerfile Normal file
View file

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

View file

@ -0,0 +1,13 @@
[Unit]
Description=Little Lines Documentation
[Container]
ContainerName=little-lines-docs
Image=little-lines-docs
PublishPort=8000:80
[Service]
Restart=always
[Install]
WantedBy=multi-user.target default.target