Skip to content

Commit

Permalink
chore: update node version for dockerfile TCKT-277
Browse files Browse the repository at this point in the history
  • Loading branch information
kalasgarov committed Feb 14, 2025
1 parent 4021a68 commit a970b0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM node:22-bookworm AS base
FROM node:22.12.0-bookworm AS base

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
RUN corepack enable && corepack prepare pnpm@latest --activate

FROM base AS build
ARG APP_DIR
Expand All @@ -11,6 +11,11 @@ RUN apt update && \
apt install -y git
COPY . /usr/src/app
WORKDIR /usr/src/app

# Clean up and clear pnpm store and cache before installation
RUN pnpm store prune
RUN pnpm cache clean --force

RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN pnpm build
RUN pnpm --filter=$APP_DIR --prod deploy /app/$APP_DIR
Expand Down
2 changes: 1 addition & 1 deletion e2e/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ EXPOSE 9090
EXPOSE 9191
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN pnpm build --filter=@gsa-tts/forms-spotlight --filter=@gsa-tts/forms-design
WORKDIR ./e2e
WORKDIR /srv/apps/atj-platform/e2e
RUN serve ../apps/spotlight/dist -p 9090 -L & while ! nc -z localhost 9090; do sleep 1; done; pnpm playwright test;
RUN serve ../packages/design/storybook-static -p 9191 -L & while ! nc -z localhost 9191; do sleep 1; done; pnpm --filter=end-to-end-tests test:storybook --url http://localhost:9191 --config-dir ../packages/design/.storybook/ --browsers firefox chromium

Expand Down

0 comments on commit a970b0c

Please sign in to comment.