Skip to content

Commit 8e174a5

Browse files
committed
Fix/add Zustand and change npm to pnpm
1 parent 97f65cc commit 8e174a5

File tree

3 files changed

+2603
-1984
lines changed

3 files changed

+2603
-1984
lines changed

peerprep-fe/Dockerfile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
# Use an official Node runtime as the base image
22
FROM node:18-alpine
33

4+
# Install pnpm globally
5+
RUN npm install -g pnpm
6+
47
# Set the working directory in the container
58
WORKDIR /app
69

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 ./
912

10-
# Install dependencies
11-
RUN npm install
13+
# Install dependencies using pnpm
14+
RUN pnpm install
1215

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
1518

1619
# Copy the rest of the application code
1720
COPY . .
1821

1922
# Build the Next.js application
20-
RUN npm run build
23+
RUN pnpm run build
2124

2225
# Expose the port the app runs on
2326
EXPOSE 3000
2427

2528
# Start the application
26-
CMD ["npm", "start"]
29+
CMD ["pnpm", "start"]

peerprep-fe/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"react": "^18",
2323
"react-dom": "^18",
2424
"tailwind-merge": "^2.5.2",
25-
"tailwindcss-animate": "^1.0.7"
25+
"tailwindcss-animate": "^1.0.7",
26+
"zustand": "5.0.0-rc.2"
2627
},
2728
"devDependencies": {
2829
"@types/node": "^20",

0 commit comments

Comments
 (0)