File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ FROM node:18-alpine AS builder
2
2
3
3
# ENV NODE_ENV=production
4
4
5
- WORKDIR /build
5
+ WORKDIR /app
6
6
COPY . .
7
+
7
8
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
9
RUN npm run build
9
10
@@ -12,11 +13,12 @@ FROM node:18-alpine AS runner
12
13
13
14
# ENV NODE_ENV=production
14
15
15
- WORKDIR /app
16
- COPY --chown=node -- from=builder /build .
16
+ COPY --from=builder /app/.next/standalone /app
17
+ COPY --from=builder /app/.next/static /app/.next/static
17
18
19
+ WORKDIR /app
18
20
USER node
19
21
EXPOSE 3000
20
- CMD npm start
22
+ CMD [ "node" , "server.js" ]
21
23
22
24
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
reactStrictMode : false ,
3
+ output : 'standalone' ,
3
4
i18n : {
4
5
// These are all the locales you want to support in
5
6
// your application
You can’t perform that action at this time.
0 commit comments