diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9cc71d2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM rockylinux:9 + +RUN dnf update -y &&\ + dnf install -y git python3-pip &&\ + dnf clean all + +# bind volume $CWD > /wiki exists in docker-compose.yml +RUN mkdir /wiki +COPY requirements.txt /wiki +WORKDIR /wiki +RUN pip3 install -r requirements.txt + +EXPOSE 8000 +CMD mkdocs serve -a 0.0.0.0:8000 + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..4243f9b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +version: '3.2' +services: + wiki: + volumes: + - type: bind + source: . + target: /wiki + build: + context: . + ports: + - 8000:8000 +