feat: 依赖升级

This commit is contained in:
2024-03-01 09:19:49 +08:00
parent b53ac87c76
commit 10ed284461
8 changed files with 26 additions and 6731 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM node:lts-alpine
WORKDIR /app
RUN sed -i "s@http://dl-cdn.alpinelinux.org/@https://repo.huaweicloud.com/@g" /etc/apk/repositories
RUN apk add --no-cache tzdata
ENV TZ="Asia/Shanghai"
RUN npm config set registry https://registry.npm.taobao.org
COPY package.json ./package.json
RUN npm install
COPY . .
RUN npm run build
RUN rm -rf node_modules && rm package-lock.json
RUN npm install --production
EXPOSE 3000
CMD ["npm", "run", "start"]