mirror of
https://github.com/tubearchivist/docs.git
synced 2024-11-13 23:50:13 +00:00
simplify docker build
This commit is contained in:
parent
f7e37de0eb
commit
9402e6b5ca
10
Dockerfile
10
Dockerfile
@ -3,15 +3,13 @@
|
||||
FROM python:3.10.9-slim-bullseye AS builder
|
||||
ENV PATH=/root/.local/bin:$PATH
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
git
|
||||
|
||||
COPY requirements.txt /requirements.txt
|
||||
RUN pip install --user -r requirements.txt
|
||||
|
||||
RUN git clone https://github.com/tubearchivist/docs.git
|
||||
WORKDIR docs/mkdocs
|
||||
RUN mkdir /mkdocs
|
||||
COPY mkdocs /mkdocs
|
||||
WORKDIR mkdocs
|
||||
RUN mkdocs build
|
||||
|
||||
FROM nginx as srv
|
||||
COPY --from=builder docs/mkdocs/site /usr/share/nginx/html
|
||||
COPY --from=builder /mkdocs/site /usr/share/nginx/html
|
||||
|
Loading…
Reference in New Issue
Block a user