mirror of
https://github.com/tubearchivist/docs.git
synced 2024-11-14 16:10:12 +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
|
FROM python:3.10.9-slim-bullseye AS builder
|
||||||
ENV PATH=/root/.local/bin:$PATH
|
ENV PATH=/root/.local/bin:$PATH
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
||||||
git
|
|
||||||
|
|
||||||
COPY requirements.txt /requirements.txt
|
COPY requirements.txt /requirements.txt
|
||||||
RUN pip install --user -r requirements.txt
|
RUN pip install --user -r requirements.txt
|
||||||
|
|
||||||
RUN git clone https://github.com/tubearchivist/docs.git
|
RUN mkdir /mkdocs
|
||||||
WORKDIR docs/mkdocs
|
COPY mkdocs /mkdocs
|
||||||
|
WORKDIR mkdocs
|
||||||
RUN mkdocs build
|
RUN mkdocs build
|
||||||
|
|
||||||
FROM nginx as srv
|
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