File tree 1 file changed +4
-10
lines changed
1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 1
1
FROM node:20-alpine3.19 AS base
2
- FROM node:20-alpine3.19 AS base
3
2
4
3
FROM base AS build
5
4
6
5
WORKDIR /usr/src/app
7
- COPY package.json ./
8
- COPY package.json bun.lockb ./
6
+ COPY package.json yarn.lock ./
9
7
RUN yarn install --no-lockfile
10
8
COPY . .
11
9
RUN yarn build
12
- RUN yarn run build
13
10
14
11
FROM base AS production
15
12
16
- FROM oven/bun:latest AS production
17
-
18
13
COPY --from=build /usr/src/app/node_modules ./node_modules
19
14
COPY --from=build /usr/src/app/dist ./dist
20
15
COPY --from=build /usr/src/app/package.json .
21
- COPY --from=build /usr/src/app/bun.lockb .
22
-
23
- CMD ["sh" , "-c" , "yarn start:prod" ]
24
- ENTRYPOINT [ "bun" , "run" , "dist/main.js" ]
16
+ COPY --from=build /usr/src/app/yarn.lock .
25
17
18
+ # CMD ["sh", "-c", "yarn start:prod"]
19
+ CMD ["node" , "dist/main" ]
You can’t perform that action at this time.
0 commit comments