Update Dockerfile

This commit is contained in:
Anduin Xue
2025-03-26 02:44:56 +00:00
committed by GitHub
parent a94c003797
commit 2e5e3b905c

View File

@@ -1,6 +1,6 @@
# ============================ # ============================
# Prepare lint Environment # Prepare lint Environment
FROM hub.aiursoft.cn/node:21-alpine as lint-env FROM node:21-alpine as lint-env
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN npm install --loglevel verbose RUN npm install --loglevel verbose
@@ -9,7 +9,7 @@ RUN npm run lint
# ============================ # ============================
# Prepare Build Environment # Prepare Build Environment
FROM hub.aiursoft.cn/python:3.11 as python-env FROM python:3.11 as python-env
WORKDIR /app WORKDIR /app
COPY --from=lint-env /app . COPY --from=lint-env /app .
RUN apt-get update && apt-get install -y weasyprint fonts-noto-cjk wget unzip RUN apt-get update && apt-get install -y weasyprint fonts-noto-cjk wget unzip
@@ -18,7 +18,7 @@ RUN mkdocs build
# ============================ # ============================
# Prepare Runtime Environment # Prepare Runtime Environment
FROM hub.aiursoft.cn/aiursoft/static FROM aiursoft/static
COPY --from=python-env /app/site /data COPY --from=python-env /app/site /data
LABEL org.opencontainers.image.source="https://github.com/Anduin2017/HowToCook" LABEL org.opencontainers.image.source="https://github.com/Anduin2017/HowToCook"