Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sshh12 committed Nov 17, 2024
1 parent 28d1f7b commit 6fe84cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 7 additions & 3 deletions images/NextjsShadcnDockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ RUN node --version && npm --version

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

RUN ls -asl /frontend && \
cat /frontend/package.json

EXPOSE 3000
8 changes: 3 additions & 5 deletions images/NextjsVanillaDockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ RUN node --version && npm --version

RUN npx --yes create-next-app@latest frontend --js --tailwind --no-eslint --src-dir src --app --no-turbopack --yes && \
cd frontend && \
npm install lucide-react --force && \
(echo "\n\n\n" | npx shadcn@latest init --defaults --force --yes) && \
(echo "\n\n\n" | npx shadcn@latest add --yes --all) && \
npm run build && \
ls -asl /frontend && \
npm run build

RUN ls -asl /frontend && \
cat /frontend/package.json

EXPOSE 3000

0 comments on commit 6fe84cb

Please sign in to comment.