Skip to content

Commit

Permalink
Switch js-pipelines branch in pr workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kamdubiel committed Feb 3, 2025
1 parent d39155a commit 50a499d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
test-analyze:
name: 'Run'
uses: infinum/js-pipeline/.github/workflows/pipeline.yml@master
uses: infinum/js-pipeline/.github/workflows/pipeline.yml@main
with:
ci_steps: 'lint test analyze'
workflow: '.github/workflows/pr.yml'
Expand Down
32 changes: 32 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM node:20.10.0-bookworm AS base
WORKDIR /app
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"

RUN npm install -g [email protected]

# # # PROJECT
FROM base as project
COPY . .

# # # PROD DEPENDENCIES
FROM project AS prod-dependencies
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile --ignore-scripts

# # # BUILDER
FROM project AS builder
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --ignore-scripts

ARG NEXT_PUBLIC_BUGSNAG_API_KEY

RUN pnpm build

# # # RUNNER
FROM base AS runner
COPY --from=prod-dependencies /app/node_modules /app/node_modules

COPY --from=builder /app/.next/standalone/ /app/.next/standalone
COPY --from=builder /app/.next/static /app/.next/standalone/.next/static
COPY --from=builder /app/public /app/.next/standalone/public

CMD ["node", ".next/standalone/server.js"]
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "js-react-example",
"version": "0.1.0",
"private": true,
"packageManager": "[email protected]",
"engines": {
"node": "20.10.0"
},
Expand Down

0 comments on commit 50a499d

Please sign in to comment.