We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be822f0 commit 98facb8Copy full SHA for 98facb8
Dockerfile
@@ -1,21 +1,21 @@
1
-FROM node:16
+FROM node:18
2
3
# Create app directory
4
WORKDIR /usr/src/app
5
6
# Install yarn
7
-RUN npm install yarn --no-package-lock
+RUN npm install pnpm --no-package-lock
8
9
# Copy app source
10
# COPY package.json ./
11
# COPY yarn.lock ./
12
COPY . .
13
14
# Install dependencies
15
-RUN yarn install
+RUN pnpm install
16
17
# Bundle app source
18
-RUN yarn build
+RUN pnpm build
19
20
# Set environment variables
21
ENV NODE_ENV=production
@@ -25,4 +25,4 @@ ENV PORT=3000
25
EXPOSE 3000
26
27
# Start app
28
-CMD [ "node", "dist/server.js" ]
+CMD [ "node", "dist/server.js" ]
0 commit comments