mirror of
https://gitlab.com/little-lines/docs.git
synced 2024-12-23 23:18:29 +00:00
Add container stuff
This commit is contained in:
parent
8b52830f2a
commit
6018f179d0
2 changed files with 26 additions and 0 deletions
13
docs/Dockerfile
Normal file
13
docs/Dockerfile
Normal 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
|
13
little-lines-docs.container.example
Normal file
13
little-lines-docs.container.example
Normal 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
|
Loading…
Reference in a new issue