Update Dockerfile
This commit is contained in:
parent
a94c003797
commit
2e5e3b905c
|
|
@ -1,6 +1,6 @@
|
|||
# ============================
|
||||
# Prepare lint Environment
|
||||
FROM hub.aiursoft.cn/node:21-alpine as lint-env
|
||||
FROM node:21-alpine as lint-env
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN npm install --loglevel verbose
|
||||
|
|
@ -9,7 +9,7 @@ RUN npm run lint
|
|||
|
||||
# ============================
|
||||
# Prepare Build Environment
|
||||
FROM hub.aiursoft.cn/python:3.11 as python-env
|
||||
FROM python:3.11 as python-env
|
||||
WORKDIR /app
|
||||
COPY --from=lint-env /app .
|
||||
RUN apt-get update && apt-get install -y weasyprint fonts-noto-cjk wget unzip
|
||||
|
|
@ -18,7 +18,7 @@ RUN mkdocs build
|
|||
|
||||
# ============================
|
||||
# Prepare Runtime Environment
|
||||
FROM hub.aiursoft.cn/aiursoft/static
|
||||
FROM aiursoft/static
|
||||
COPY --from=python-env /app/site /data
|
||||
|
||||
LABEL org.opencontainers.image.source="https://github.com/Anduin2017/HowToCook"
|
||||
|
|
|
|||
Loading…
Reference in New Issue