Spaces:
Paused
Paused
Commit
•
fcd4fd1
1
Parent(s):
6f2e100
Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
-
FROM node:18
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
5 |
COPY . .
|
6 |
-
RUN npm install
|
|
|
7 |
ENV NODE_ENV=production
|
8 |
-
RUN
|
9 |
-
CMD ["
|
|
|
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"]
|