Skip to content

Commit 168bc11

Browse files
committed
dockerize frontend
1 parent 04bdd95 commit 168bc11

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

client/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM node:21.6.0-alpine AS build
2+
3+
WORKDIR /usr/src/app
4+
5+
COPY package*.json ./
6+
7+
RUN npm install
8+
9+
COPY . .
10+
11+
RUN npm run build
12+
13+
FROM nginx:alpine
14+
COPY --from=build /usr/src/app/build /usr/share/nginx/html
15+
16+
EXPOSE 5173
17+
18+
CMD ["npm", "run", "dev"]

0 commit comments

Comments
 (0)