dockerizing frontend
This commit is contained in:
@@ -0,0 +1 @@
|
||||
node_modules
|
||||
@@ -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"]
|
||||
Reference in New Issue
Block a user