架构: 添加Docker配置

This commit is contained in:
Architecture Designer 2026-03-10 09:39:05 +00:00
parent c8394816a4
commit ab1232632c

12
backend/Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --production
COPY . .
EXPOSE 3000
CMD ["node", "src/index.js"]