Skip to content

Commit

Permalink
added pnpm env
Browse files Browse the repository at this point in the history
  • Loading branch information
fullstackninja864 committed Dec 4, 2023
1 parent cf2aebc commit 52155a0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
FROM node:20-alpine AS base
FROM node:20-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

# Set the working directory inside the container
WORKDIR /app

# Copy the package files to the working directory
COPY package.json pnpm-lock.yaml /app/

# Install PNPM globally
RUN npm install -g pnpm next

# Install project dependencies using PNPM
RUN pnpm install --ignore-scripts puppeteer
# To check why lossless-json is not installed by jellyfishsdk
RUN pnpm install [email protected]

# Copy the rest of the application code
COPY . .
COPY . /app

# Build the Next.js application
RUN pnpm run build
Expand Down

0 comments on commit 52155a0

Please sign in to comment.