Skip to content

Commit ada9f82

Browse files
committed
fix working dir of npm tasks
1 parent f3e0af9 commit ada9f82

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

anms.Containerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,15 @@ ENV PM2_HOME=${APP_WORK_DIR}/.pm2
110110
USER ${APP_USER}:${APP_USER}
111111

112112
# Install Angular UI Dependencies
113-
COPY . /tmp/build-context-debug
114-
RUN find /tmp/build-context-debug -maxdepth 3 -name 'package-lock.json' -o -name 'package.json'
115113
COPY --chown=${APP_USER}:${APP_USER} \
116114
anms-ui/package.json anms-ui/package-lock.json ${APP_WORK_DIR}/
115+
WORKDIR ${APP_WORK_DIR}
117116
RUN --mount=type=cache,uid=9999,gid=9999,target=/home/${APP_USER}/.npm \
118117
npm ci
119118

120119
# Build Backend/Frontend
121120
# These copies do not overwrite node_modules
122-
COPY --chown=${APP_USER}:${APP_USER} anms-ui ${APP_WORK_DIR}/
121+
COPY --chown=${APP_USER}:${APP_USER} anms-ui/ ${APP_WORK_DIR}/
123122
RUN --mount=type=cache,uid=9999,gid=9999,target=/home/${APP_USER}/.npm \
124123
npm run build
125124

0 commit comments

Comments
 (0)