-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf2aebc
commit 52155a0
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|