Fix Dockerfile warning. Use nginx image for arm64 (macOS). (#1621)
Some checks failed
Continuous Deployment / build-readme-file (push) Has been cancelled
Continuous Deployment / build-docker-image (push) Has been cancelled

This commit is contained in:
Googol Lee
2025-06-11 06:59:38 +02:00
committed by GitHub
parent 4f1d430923
commit 7977224616

View File

@@ -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"