Skip to content

Commit 6fe84cb

Browse files
committed
tweaks
1 parent 28d1f7b commit 6fe84cb

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

images/NextjsShadcnDockerFile

+7-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@ RUN node --version && npm --version
1717

1818
RUN npx --yes create-next-app@latest frontend --js --tailwind --no-eslint --src-dir src --app --no-turbopack --yes && \
1919
cd frontend && \
20-
npm run build && \
21-
ls -asl /frontend && \
22-
cat /frontend/package.json
20+
npm install lucide-react axios --force && \
21+
(echo "\n\n\n" | npx shadcn@latest init --defaults --force --yes) && \
22+
(echo "\n\n\n" | npx shadcn@latest add --yes --all) && \
23+
npm run build
24+
25+
RUN ls -asl /frontend && \
26+
cat /frontend/package.json
2327

2428
EXPOSE 3000

images/NextjsVanillaDockerFile

+3-5
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ RUN node --version && npm --version
1717

1818
RUN npx --yes create-next-app@latest frontend --js --tailwind --no-eslint --src-dir src --app --no-turbopack --yes && \
1919
cd frontend && \
20-
npm install lucide-react --force && \
21-
(echo "\n\n\n" | npx shadcn@latest init --defaults --force --yes) && \
22-
(echo "\n\n\n" | npx shadcn@latest add --yes --all) && \
23-
npm run build && \
24-
ls -asl /frontend && \
20+
npm run build
21+
22+
RUN ls -asl /frontend && \
2523
cat /frontend/package.json
2624

2725
EXPOSE 3000

0 commit comments

Comments
 (0)