This commit is contained in:
parent
660ab597ed
commit
b9f44c278f
21
Dockerfile
Normal file
21
Dockerfile
Normal 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"]
|
@ -3,7 +3,7 @@ version: "3"
|
||||
services:
|
||||
|
||||
webdoc:
|
||||
image: titom73/mkdocs
|
||||
build: .
|
||||
container_name: gregandoc
|
||||
volumes:
|
||||
- ${PWD}/doc:/docs
|
||||
|
Loading…
x
Reference in New Issue
Block a user