mirror of
https://github.com/imsyy/DailyHotApi.git
synced 2026-01-12 05:04:56 +08:00
feat: 优化 Docker 大小
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user