解决Dockerfile报错

This commit is contained in:
tangxinyue 2026-07-24 14:55:32 +08:00
parent 9a1405743b
commit 9c5322b142
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@ -17,6 +17,9 @@ npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
pnpm-debug.log* pnpm-debug.log*
log/
/log
# 编辑器配置 # 编辑器配置
.vscode/* .vscode/*

View File

@ -3,7 +3,7 @@ ARG PACKAGE
ENV PACKAGE $PACKAGE ENV PACKAGE $PACKAGE
ADD . /app ADD . /app
WORKDIR /app WORKDIR /app
RUN mkdir /app/log RUN mkdir -p /app/log
RUN cd /app && \ RUN cd /app && \
chmod +x start.sh && \ chmod +x start.sh && \
npm config set registry https://registry.npmmirror.com/ && \ npm config set registry https://registry.npmmirror.com/ && \