feat: 升级node版本,精简Docker镜像

This commit is contained in:
lyz05
2022-12-10 23:05:51 +08:00
parent d64e5e995e
commit cb4502ebb7

View File

@@ -1,4 +1,4 @@
FROM node:14.21.0-alpine3.16
FROM node:16.18.0-alpine
ENV TZ Asia/Shanghai
RUN apk add tzdata && cp /usr/share/zoneinfo/${TZ} /etc/localtime \
@@ -10,7 +10,7 @@ LABEL fly_launch_runtime="nodejs"
COPY . /app
WORKDIR /app
RUN npm install
RUN npm install --production && npm prune --production
ENV NODE_ENV production
CMD [ "npm", "run", "start" ]