mirror of
https://github.com/lyz05/danmaku.git
synced 2026-02-02 17:59:53 +08:00
feat: 升级node版本,精简Docker镜像
This commit is contained in:
@@ -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" ]
|
||||
|
||||
Reference in New Issue
Block a user