Update Dockerfile
This commit is contained in:
parent
d227127fc7
commit
ce38393818
1 changed files with 9 additions and 1 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -1 +1,9 @@
|
|||
FROM python:3.11-slim AS builder WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir --upgrade -r requirements.txt COPY . . RUN mkdocs build FROM nginx:alpine RUN rm -rf /usr/share/nginx/html/* COPY --from=builder /app/site /usr/share/nginx/html EXPOSE 80
|
||||
FROM python:3.11-slim AS builder
|
||||
WORKDIR /app COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
||||
COPY . .
|
||||
RUN mkdocs build
|
||||
FROM nginx:alpine
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
COPY --from=builder /app/site /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
Loading…
Add table
Add a link
Reference in a new issue