mirror of
https://github.com/Anduin2017/HowToCook.git
synced 2025-12-17 18:54:26 +08:00
Update Dockerfile
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user