You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
585 B

FROM node:18
RUN npm install -g pnpm@8.4.0
# && \
# npm config set registry https://registry.npm.taobao.org
WORKDIR /usr/src/app
COPY ./data ./data
COPY ./dist ./dist
COPY ./template ./template
COPY ./patches ./patches
COPY ./public ./public
COPY .env.production ./
COPY package.json ./
COPY pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
# 使用 --frozen-lockfile 标志是为了确保只安装lock文件中指定的版本,而不会进行任何更新。这将确保您的依赖项与锁定文件中指定的版本完全一致。
EXPOSE 3388
CMD [ "pnpm", "start" ]