File tree Expand file tree Collapse file tree 3 files changed +2603
-1984
lines changed Expand file tree Collapse file tree 3 files changed +2603
-1984
lines changed Original file line number Diff line number Diff line change 1
1
# Use an official Node runtime as the base image
2
2
FROM node:18-alpine
3
3
4
+ # Install pnpm globally
5
+ RUN npm install -g pnpm
6
+
4
7
# Set the working directory in the container
5
8
WORKDIR /app
6
9
7
- # Copy package.json and package -lock.json
8
- COPY package*.json ./
10
+ # Copy package.json and pnpm -lock.yaml
11
+ COPY package*.json pnpm-lock.yaml ./
9
12
10
- # Install dependencies
11
- RUN npm install
13
+ # Install dependencies using pnpm
14
+ RUN pnpm install
12
15
13
- # Install zustand, somehow wasnt included in npm install??
14
- RUN npm install zustand
16
+ # Install zustand explicitly (in case it's still not included)
17
+ RUN pnpm add zustand
15
18
16
19
# Copy the rest of the application code
17
20
COPY . .
18
21
19
22
# Build the Next.js application
20
- RUN npm run build
23
+ RUN pnpm run build
21
24
22
25
# Expose the port the app runs on
23
26
EXPOSE 3000
24
27
25
28
# Start the application
26
- CMD ["npm " , "start" ]
29
+ CMD ["pnpm " , "start" ]
Original file line number Diff line number Diff line change 22
22
"react" : " ^18" ,
23
23
"react-dom" : " ^18" ,
24
24
"tailwind-merge" : " ^2.5.2" ,
25
- "tailwindcss-animate" : " ^1.0.7"
25
+ "tailwindcss-animate" : " ^1.0.7" ,
26
+ "zustand" : " 5.0.0-rc.2"
26
27
},
27
28
"devDependencies" : {
28
29
"@types/node" : " ^20" ,
You can’t perform that action at this time.
0 commit comments