dockerizing frontend

This commit is contained in:
Moon Patel
2023-09-18 12:51:56 +05:30
parent 164da1ffee
commit f318d426ee
2 changed files with 21 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
node_modules
+20
View File
@@ -0,0 +1,20 @@
# Dockerfile for React client
# Build react client
FROM node
# Working directory be app
WORKDIR /usr/src/app
COPY package*.json ./
### Installing dependencies
RUN npm install --silent
# copy local files to app folder
COPY . .
EXPOSE 5173
CMD ["npm","run","dev"]