Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sshh12 committed Jan 25, 2025
1 parent f2d2aff commit 2c47713
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
6 changes: 2 additions & 4 deletions images/AngularVanillaDockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN apt-get update && \
curl \
wget \
zip \
tree \
unzip && \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y --no-install-recommends nodejs && \
Expand All @@ -15,7 +16,6 @@ RUN apt-get update && \

RUN node --version && npm --version

# Create new Angular project in one command, similar to create-next-app
RUN npm install -g @angular/cli && \
ng new frontend \
--routing=true \
Expand All @@ -28,9 +28,7 @@ RUN npm install -g @angular/cli && \
npm install && \
ng build

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

EXPOSE 3000
7 changes: 4 additions & 3 deletions images/NextjsP5DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN apt-get update && \
curl \
wget \
zip \
tree \
unzip && \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y --no-install-recommends nodejs && \
Expand All @@ -19,6 +20,8 @@ RUN npx --yes create-next-app@latest frontend --js --tailwind -src-dir src --app
cd frontend && \
npm run build

RUN tree /frontend

RUN curl -o /frontend/next.config.mjs https://raw.githubusercontent.com/sshh12/prompt-stack/refs/heads/main/images/nextjs/next.config.mjs.example && \
curl -o /frontend/.eslintrc.json https://raw.githubusercontent.com/sshh12/prompt-stack/refs/heads/main/images/nextjs/.eslintrc.json.example && \
curl -o /frontend/public/sketch.js https://raw.githubusercontent.com/sshh12/prompt-stack/refs/heads/main/images/p5/public/sketch.js && \
Expand All @@ -29,9 +32,7 @@ RUN curl -o /frontend/next.config.mjs https://raw.githubusercontent.com/sshh12/p
curl -o /frontend/src/app/page.js https://raw.githubusercontent.com/sshh12/prompt-stack/refs/heads/main/images/p5/src/app/page.js && \
rm -rf /frontend/public/*.svg

RUN ls -asl /frontend && \
ls -asl /frontend/public && \
ls -asl /frontend/src/app && \
RUN tree /frontend && \
cat /frontend/package.json

EXPOSE 3000
7 changes: 4 additions & 3 deletions images/NextjsPixiDockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN apt-get update && \
curl \
wget \
zip \
tree \
unzip && \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y --no-install-recommends nodejs && \
Expand All @@ -20,6 +21,8 @@ RUN npx --yes create-next-app@latest frontend --js --tailwind --src-dir src --ap
npm install pixi.js @pixi/mesh-extras raw-loader --force && \
npm run build

RUN tree /frontend

RUN curl -o /frontend/next.config.mjs https://raw.githubusercontent.com/sshh12/prompt-stack/refs/heads/main/images/nextjs/next.config.mjs.example && \
curl -o /frontend/.eslintrc.json https://raw.githubusercontent.com/sshh12/prompt-stack/refs/heads/main/images/nextjs/.eslintrc.json.example && \
curl -o /frontend/src/app/layout.js https://raw.githubusercontent.com/sshh12/prompt-stack/refs/heads/main/images/pixi/src/app/layout.js && \
Expand All @@ -28,9 +31,7 @@ RUN curl -o /frontend/next.config.mjs https://raw.githubusercontent.com/sshh12/p
curl -o /frontend/src/app/pixi/app.js https://raw.githubusercontent.com/sshh12/prompt-stack/refs/heads/main/images/pixi/src/app/pixi/app.js && \
rm -rf /frontend/public/*.svg

RUN ls -asl /frontend && \
ls -asl /frontend/public && \
ls -asl /frontend/src/app && \
RUN tree /frontend && \
cat /frontend/package.json

EXPOSE 3000
7 changes: 4 additions & 3 deletions images/NextjsShadcnDockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN apt-get update && \
curl \
wget \
zip \
tree \
unzip && \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y --no-install-recommends nodejs && \
Expand All @@ -22,12 +23,12 @@ RUN npx --yes create-next-app@latest frontend --js --tailwind --src-dir src --ap
(echo "\n\n\n" | npx shadcn@latest add --yes --all) && \
npm run build

RUN tree /frontend

RUN curl -o /frontend/next.config.mjs https://raw.githubusercontent.com/sshh12/prompt-stack/refs/heads/main/images/nextjs/next.config.mjs.example && \
curl -o /frontend/.eslintrc.json https://raw.githubusercontent.com/sshh12/prompt-stack/refs/heads/main/images/nextjs/.eslintrc.json.example

RUN ls -asl /frontend && \
ls -asl /frontend/public && \
ls -asl /frontend/src/app && \
RUN tree /frontend && \
cat /frontend/package.json

EXPOSE 3000
6 changes: 3 additions & 3 deletions images/NextjsVanillaDockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ RUN npx --yes create-next-app@latest frontend --js --tailwind --src-dir src --ap
cd frontend && \
npm run build

RUN tree /frontend

RUN curl -o /frontend/next.config.mjs https://raw.githubusercontent.com/sshh12/prompt-stack/refs/heads/main/images/nextjs/next.config.mjs.example && \
curl -o /frontend/.eslintrc.json https://raw.githubusercontent.com/sshh12/prompt-stack/refs/heads/main/images/nextjs/.eslintrc.json.example

RUN ls -asl /frontend && \
ls -asl /frontend/public && \
ls -asl /frontend/src/app && \
RUN tree /frontend && \
cat /frontend/package.json

EXPOSE 3000

0 comments on commit 2c47713

Please sign in to comment.