Dockerfile

master
greglebreton 2 years ago
parent 660ab597ed
commit b9f44c278f
  1. 21
      Dockerfile
  2. 2
      docker-compose.yml

@ -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…
Cancel
Save