Skip to content

Commit

Permalink
fix: 修复Docker 下因 package.json 文件丢失导致应用无法启用的Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ronggang committed Sep 20, 2019
1 parent 2a37469 commit af9faf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ EXPOSE 8088
ARG APP_PATH="/app"
# 设置虚拟卷,以方便外部指定
VOLUME ["$APP_PATH/storage", "$APP_PATH/config"]
# 复制安装包所需要的文件
COPY ./package.json $APP_PATH/
# 设置工作路径
WORKDIR $APP_PATH
# 复制依赖包
Expand Down

0 comments on commit af9faf6

Please sign in to comment.