mirror of
https://github.com/Anduin2017/HowToCook.git
synced 2025-10-25 22:20:36 +08:00
Fix Dockerfile warning. Use nginx image for arm64 (macOS). (#1621)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# ============================
|
||||
# Prepare lint Environment
|
||||
FROM node:22-alpine as lint-env
|
||||
FROM node:22-alpine AS lint-env
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN npm install --loglevel verbose
|
||||
@@ -9,7 +9,7 @@ RUN npm run lint
|
||||
|
||||
# ============================
|
||||
# Prepare Build Environment
|
||||
FROM 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 aiursoft/static
|
||||
COPY --from=python-env /app/site /data
|
||||
FROM nginx:1-alpine
|
||||
COPY --from=python-env /app/site /usr/share/nginx/html
|
||||
|
||||
LABEL org.opencontainers.image.source="https://github.com/Anduin2017/HowToCook"
|
||||
|
||||
Reference in New Issue
Block a user