add docker compose deployment docs

This commit is contained in:
2026-05-09 17:44:49 +08:00
parent a23ce5b08f
commit c8e093f1f0
5 changed files with 312 additions and 0 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM node:22-bookworm-slim
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates python3 make g++ \
&& rm -rf /var/lib/apt/lists/*
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
EXPOSE 3000 3002
CMD ["sh", "-c", "npm run dev -- --host 0.0.0.0 --strictPort & npm run api"]