Skip to content

Commit 1736b58

Browse files
committed
Add Dockerfile
1 parent 65f6bd5 commit 1736b58

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

Dockerfile

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
1-
FROM node:22-alpine AS builder
1+
FROM node:22-alpine
22

33
WORKDIR /app
44

55
COPY package*.json ./
66

7-
RUN npm install
7+
RUN npm install --omit=dev
88

99
COPY . .
1010

11-
RUN npm run build
12-
13-
FROM nginx:stable-alpine
14-
15-
COPY --from=builder /app/build /usr/share/nginx/html
16-
17-
EXPOSE 80
18-
19-
CMD ["nginx","-g", "daemon off;"]
11+
EXPOSE 3000
2012

13+
CMD ["npm", "start"]
2114

0 commit comments

Comments
 (0)