Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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"