Skip to content

Commit 605dbcf

Browse files
author
Ruben van Leeuwen
committed
826: Switch Docker build to npm. Update @orchestrator-ui packages to latest version in Docker build instead of ingnoring package-lock
1 parent 430ee8b commit 605dbcf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ FROM node:18-alpine AS builder
44

55
WORKDIR /build
66
COPY . .
7-
RUN yarn install
8-
RUN yarn build --no-lint
7+
RUN npm install && npm update @orchestrator-ui/orchestrator-ui-components && npm update @orchestrator-ui/eslint-config-custom && npm update @orchestrator-ui/jest-config && npm update @orchestrator-ui/tsconfig
8+
RUN npm run build
9+
910

1011
FROM node:18-alpine AS runner
1112

@@ -16,4 +17,6 @@ COPY --chown=node --from=builder /build .
1617

1718
USER node
1819
EXPOSE 3000
19-
CMD yarn start
20+
CMD npm start
21+
22+

0 commit comments

Comments
 (0)