Skip to content

Commit 804b8bb

Browse files
committed
fix: update dockerfile for the newly created adminforth app
1 parent 4962d3c commit 804b8bb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM node:{{nodeMajor}}-slim
1+
FROM devforth/node20-pnpm:latest
22
WORKDIR /code/
3-
ADD package.json package-lock.json /code/
4-
RUN npm ci
3+
ADD package.json pnpm-lock.yaml pnpm-workspace.yaml /code/
4+
RUN pnpm i
55
ADD . /code/
6-
RUN npx adminforth bundle
7-
CMD ["sh", "-c", "npm run migrate:prod && npm run prod"]
6+
RUN pnpm exec adminforth bundle
7+
CMD ["sh", "-c", "pnpm migrate:prod && pnpm prod"]

0 commit comments

Comments
 (0)