feat: 优化 Docker 大小

This commit is contained in:
imsyy
2023-12-06 12:25:09 +08:00
parent b90c144a62
commit a4394588c1
3 changed files with 5 additions and 8 deletions

View File

@@ -1,13 +1,10 @@
FROM node:16
FROM node:16-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm install --production
COPY . .
EXPOSE 6688
CMD ["npm", "start"]