Add docker support.

This commit is contained in:
AnduinXue
2024-03-12 18:33:19 +00:00
parent d77713f4dd
commit 39bb6f0a02
3 changed files with 28 additions and 0 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
# ============================
# Prepare Node Environment
FROM hub.aiursoft.cn/node:21-alpine as node-env
WORKDIR /app
COPY . .
RUN node ./.github/readme-generate.js
# ============================
# Prepare Build Environment
FROM hub.aiursoft.cn/python:3.11 as python-env
WORKDIR /app
COPY --from=node-env /app .
RUN pip install -r requirements.txt
RUN mkdocs build --strict
# ============================
# Prepare Runtime Environment
FROM hub.aiursoft.cn/aiursoft/static
COPY --from=python-env /app/site /data