Use regular npm i in Metamigo Dockerfiles
This commit is contained in:
parent
6e3e178187
commit
4d3e86a4c0
2 changed files with 2 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ WORKDIR ${APP_DIR}
|
||||||
COPY .gitignore .gitignore
|
COPY .gitignore .gitignore
|
||||||
COPY --from=builder ${APP_DIR}/out/json/ .
|
COPY --from=builder ${APP_DIR}/out/json/ .
|
||||||
COPY --from=builder ${APP_DIR}/out/package-lock.json ./package-lock.json
|
COPY --from=builder ${APP_DIR}/out/package-lock.json ./package-lock.json
|
||||||
RUN npm ci --omit=dev
|
RUN npm i
|
||||||
|
|
||||||
COPY --from=builder ${APP_DIR}/out/full/ .
|
COPY --from=builder ${APP_DIR}/out/full/ .
|
||||||
RUN npm i -g turbo
|
RUN npm i -g turbo
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,13 @@ WORKDIR ${APP_DIR}
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN turbo prune --scope=@digiresilience/metamigo-frontend --docker
|
RUN turbo prune --scope=@digiresilience/metamigo-frontend --docker
|
||||||
|
|
||||||
|
|
||||||
FROM base AS installer
|
FROM base AS installer
|
||||||
ARG APP_DIR=/opt/metamigo-frontend
|
ARG APP_DIR=/opt/metamigo-frontend
|
||||||
WORKDIR ${APP_DIR}
|
WORKDIR ${APP_DIR}
|
||||||
COPY .gitignore .gitignore
|
COPY .gitignore .gitignore
|
||||||
COPY --from=builder ${APP_DIR}/out/json/ .
|
COPY --from=builder ${APP_DIR}/out/json/ .
|
||||||
COPY --from=builder ${APP_DIR}/out/package-lock.json ./package-lock.json
|
COPY --from=builder ${APP_DIR}/out/package-lock.json ./package-lock.json
|
||||||
RUN npm ci --omit=dev
|
RUN npm i
|
||||||
|
|
||||||
COPY --from=builder ${APP_DIR}/out/full/ .
|
COPY --from=builder ${APP_DIR}/out/full/ .
|
||||||
RUN npm i -g turbo
|
RUN npm i -g turbo
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue