Skip to content

Commit b67aa03

Browse files
authored
pnpm
1 parent 8382795 commit b67aa03

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

event-demo/Dockerfile

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
# Use an official Node.js runtime as a parent image
22
FROM node:18-alpine
33

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

710
# Copy package.json and package-lock.json (or yarn.lock) to the working directory
811
COPY package*.json ./
912

1013
# Install dependencies
11-
RUN npm ci
14+
RUN pnpm ci
1215

1316
# Copy the rest of the application code to the working directory
1417
COPY . .
1518

1619
# Build the Next.js app for production
17-
RUN npm run build
20+
RUN pnpm run build
1821

1922
# Expose the port on which the app will run
2023
EXPOSE 3000
2124

2225
# Start the Next.js app
23-
CMD ["npm", "run", "start"]
26+
CMD ["pnpm", "run", "start"]

0 commit comments

Comments
 (0)