Dockerfile
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
greglebreton 2023-01-04 21:41:38 +01:00
parent 660ab597ed
commit b9f44c278f
2 changed files with 22 additions and 1 deletions

21
Dockerfile Normal file
View File

@ -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"]

View File

@ -3,7 +3,7 @@ version: "3"
services:
webdoc:
image: titom73/mkdocs
build: .
container_name: gregandoc
volumes:
- ${PWD}/doc:/docs