feat: add delete route
This commit is contained in:
13
dockerfile
13
dockerfile
@@ -4,15 +4,17 @@ FROM node:22-alpine
|
||||
# 设置工作目录
|
||||
WORKDIR /app
|
||||
|
||||
COPY script/package/package.json ./
|
||||
# 复制 package.json 和 package-lock.json
|
||||
COPY package*.json ./
|
||||
|
||||
# 安装依赖
|
||||
# RUN npm install --production
|
||||
# COPY package*.json ./
|
||||
|
||||
# 复制 dist 文件夹
|
||||
COPY dist ./dist
|
||||
COPY app.config.json5 ./dist/app.config.json5
|
||||
COPY app.config.json5 ./app.config.json5
|
||||
COPY .npmrc .
|
||||
|
||||
# 安装依赖
|
||||
RUN npm install --production --registry=https://registry.npmmirror.com/
|
||||
|
||||
# 如果有其他静态资源文件夹,也可以一并复制
|
||||
# COPY public ./public
|
||||
@@ -22,3 +24,4 @@ EXPOSE 4000
|
||||
|
||||
# 启动应用
|
||||
CMD ["node", "dist/app.cjs"]
|
||||
# CMD ["tail", "-f", "/dev/null"]
|
||||
Reference in New Issue
Block a user