From 7977224616e41bfdbd137f0040e6938f71a730b6 Mon Sep 17 00:00:00 2001 From: Googol Lee Date: Wed, 11 Jun 2025 06:59:38 +0200 Subject: [PATCH] Fix Dockerfile warning. Use nginx image for arm64 (macOS). (#1621) --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index fb06d96f..4265ad14 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"