ayampenyet commited on
Commit
fcd4fd1
1 Parent(s): 6f2e100

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -1,9 +1,10 @@
1
- FROM node:18
2
 
3
  WORKDIR /app
4
 
5
  COPY . .
6
- RUN npm install --force
 
7
  ENV NODE_ENV=production
8
- RUN npm run build
9
- CMD ["npm", "run", "start"]
 
1
+ FROM node:18-alpine
2
 
3
  WORKDIR /app
4
 
5
  COPY . .
6
+ RUN npm install -g npm@10.8.1
7
+ RUN yarn install
8
  ENV NODE_ENV=production
9
+ RUN yarn build
10
+ CMD ["yarn", "start"]