Create a MkDocs template from private repository
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM python:3 AS builder
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN python -m venv ./python && \
|
||||
. ./python/bin/activate && \
|
||||
pip install --upgrade pip && \
|
||||
pip install --use-pep517 --no-cache-dir -r requirements.txt
|
||||
COPY . .
|
||||
RUN . ./python/bin/activate && \
|
||||
mkdocs build --clean --strict
|
||||
|
||||
FROM nginx:stable AS runtime
|
||||
COPY --from=builder /usr/src/app/site /usr/share/nginx/html
|
Reference in New Issue
Block a user