diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..38f0d7f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM python:3.8-alpine + +WORKDIR /tmp + +COPY requirements.txt requirements.txt + +RUN apk add --no-cache \ + git curl \ + && apk add --no-cache --virtual .build gcc musl-dev \ + && pip install --user -r requirements.txt \ + && apk del .build gcc musl-dev \ + && rm -rf /tmp/* + +ENV PATH=$PATH:/root/.local/bin + +WORKDIR /docs + +EXPOSE 8000 + +ENTRYPOINT ["mkdocs"] +CMD ["serve", "--dev-addr=0.0.0.0:8000"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 2af4d2b..26f643b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: "3" services: webdoc: - image: titom73/mkdocs + build: . container_name: gregandoc volumes: - ${PWD}/doc:/docs