Skip to content

Commit

Permalink
Merge pull request #464 from renchap/fix-dockerfile
Browse files Browse the repository at this point in the history
Fix Dockerfile from #462
  • Loading branch information
renchap authored Dec 3, 2023
2 parents b580e74 + 140ad98 commit 41894e0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@ COPY .yarnrc.yml package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
RUN \
# Configure Corepack
corepack enable; \
corepack prepare --immutable;
corepack prepare --activate;

RUN \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm ci; \
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; \
else echo "Lockfile not found." && exit 1; \
fi
RUN yarn install --immutable

# Rebuild the source code only when needed
FROM node:20-alpine AS builder
Expand Down

1 comment on commit 41894e0

@vercel
Copy link

@vercel vercel bot commented on 41894e0 Dec 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.