Skip to content

Commit 44e2390

Browse files
committed
Merge branch 'main' of github.com:devforth/adminforth
2 parents 320d9ff + d2c67b5 commit 44e2390

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

‎live-demo/app/Dockerfile‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1-
FROM node:22-alpine
1+
FROM node:26-alpine AS build
22
WORKDIR /code/
3+
RUN npm i -g pnpm@12
34
ADD package.json pnpm-lock.yaml pnpm-workspace.yaml /code/
4-
RUN corepack enable
5-
RUN corepack prepare pnpm@latest-10 --activate
6-
RUN pnpm i
5+
RUN pnpm i
76
ADD . /code/
87
RUN pnpm bundleNow
98
RUN pnpm run build
109

10+
FROM node:26-alpine
11+
WORKDIR /code/
12+
RUN npm i -g pnpm@12 && npm cache clean --force
13+
COPY --from=build /code/node_modules node_modules
14+
COPY --from=build /code/dist dist
15+
COPY --from=build /code/custom custom
16+
COPY --from=build /code/langs langs
17+
COPY --from=build /code/migrations migrations
18+
COPY --from=build /code/package.json /code/pnpm-lock.yaml /code/pnpm-workspace.yaml /code/schema.prisma ./
1119

1220
CMD ["pnpm", "run", "startLive"]

0 commit comments

Comments
 (0)