添加 Dockerfiles

This commit is contained in:
2026-03-27 02:01:03 +08:00
parent 54c327ebb0
commit 5a3ab2e4da
2 changed files with 15 additions and 0 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
.DS_Store
node_modules
dist

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM node:lts-alpine AS runtime
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
ENV HOST=0.0.0.0
ENV PORT=4321
CMD ["node", "./dist/server/entry.mjs"]