Skip to content

Commit c58a1aa

Browse files
committed
Fuck bun
1 parent 39d1fb1 commit c58a1aa

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

Dockerfile

+4-10
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
11
FROM node:20-alpine3.19 AS base
2-
FROM node:20-alpine3.19 AS base
32

43
FROM base AS build
54

65
WORKDIR /usr/src/app
7-
COPY package.json ./
8-
COPY package.json bun.lockb ./
6+
COPY package.json yarn.lock ./
97
RUN yarn install --no-lockfile
108
COPY . .
119
RUN yarn build
12-
RUN yarn run build
1310

1411
FROM base AS production
1512

16-
FROM oven/bun:latest AS production
17-
1813
COPY --from=build /usr/src/app/node_modules ./node_modules
1914
COPY --from=build /usr/src/app/dist ./dist
2015
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 .
2517

18+
#CMD ["sh", "-c", "yarn start:prod"]
19+
CMD ["node", "dist/main"]

0 commit comments

Comments
 (0)