Skip to content

Commit

Permalink
chore (docker): enable latest version of corepack for pnpm management…
Browse files Browse the repository at this point in the history
… across Dockerfiles
  • Loading branch information
glencoden committed Feb 4, 2025
1 parent 9513395 commit f884f78
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion apps/api-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM node:18-alpine AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN npm install -g pnpm
RUN corepack enable
RUN npm install -g corepack@latest

FROM base AS builder
WORKDIR /app
Expand Down
3 changes: 2 additions & 1 deletion apps/cloud/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM node:18-alpine AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN npm install -g pnpm
RUN corepack enable
RUN npm install -g corepack@latest

ARG VITE_API_URL
ARG VITE_SUPABASE_URL
Expand Down
3 changes: 2 additions & 1 deletion apps/setlist/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM node:18-alpine AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN npm install -g pnpm
RUN corepack enable
RUN npm install -g corepack@latest

ARG VITE_API_URL
ENV VITE_API_URL=$VITE_API_URL
Expand Down
3 changes: 2 additions & 1 deletion apps/sing/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM node:18-alpine AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN npm install -g pnpm
RUN corepack enable
RUN npm install -g corepack@latest

ARG VITE_API_URL
ENV VITE_API_URL=$VITE_API_URL
Expand Down
3 changes: 2 additions & 1 deletion apps/tool/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM node:18-alpine AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN npm install -g pnpm
RUN corepack enable
RUN npm install -g corepack@latest

ARG VITE_API_URL
ARG VITE_SUPABASE_URL
Expand Down

0 comments on commit f884f78

Please sign in to comment.