-
Notifications
You must be signed in to change notification settings - Fork 15
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
fbea4f8
commit 4be18a0
Showing
1 changed file
with
32 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM node:18 | ||
|
||
# Install system dependencies (if necessary) | ||
RUN apt-get update && apt-get install -y \ | ||
libcairo2-dev \ | ||
libpango1.0-dev \ | ||
libjpeg-dev \ | ||
libgif-dev \ | ||
librsvg2-dev \ | ||
build-essential \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
# Install pnpm and dependencies | ||
RUN npm install -g pnpm | ||
RUN rm -rf node_modules | ||
RUN pnpm config set store-dir ~/.local/share/pnpm/store | ||
RUN pnpm install --frozen-lockfile | ||
|
||
WORKDIR /app/packages/ens-app-v3 | ||
|
||
# Clear Next.js cache | ||
RUN rm -rf .next | ||
|
||
RUN pnpm run build | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["pnpm", "start"] |