Skip to content

Commit fe4bd63

Browse files
committed
🤖 cd: production build로 수정 및 serve 적용
1 parent 76b3dc4 commit fe4bd63

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
FROM node:20.18.0
22
WORKDIR /app
3-
COPY package.json .
4-
RUN npm install
3+
RUN apt update &&\
4+
apt install xsel -y
55
COPY . .
66
EXPOSE 3000
7-
CMD ["npm", "start"]
7+
CMD npm install &&\
8+
npm run build &&\
9+
npx serve -s build

0 commit comments

Comments
 (0)