Skip to content

Commit

Permalink
update react-client dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
nishkohli96 committed Jul 7, 2024
1 parent 1347e6d commit 3fd5253
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions apps/react-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ COPY --chown=node:node package.json .
COPY --chown=node:node ./packages/core-lib/package.json packages/core-lib
COPY --chown=node:node ./packages/core-lib packages/core-lib

COPY --chown=node:node ./apps/frontend/package.json apps/frontend
COPY --chown=node:node ./apps/frontend apps/frontend
COPY --chown=node:node ./apps/react-client/package.json apps/react-client
COPY --chown=node:node ./apps/react-client apps/frontend

# install node_modules
RUN npm install
RUN yarn lib:build

# build frontend
# build react-client
RUN yarn build

# Phase 2 - Get the Build and host on nginx
Expand Down
8 changes: 4 additions & 4 deletions apps/react-client/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ COPY tsconfig.json .

# first create these directories, else the copying won't work.
RUN mkdir -p packages/core-lib
RUN mkdir -p apps/frontend
RUN mkdir -p apps/react-client

# copying only the required packages
COPY ./packages/core-lib/package.json packages/core-lib
COPY ./packages/core-lib packages/core-lib

COPY ./apps/frontend/package.json apps/frontend
COPY ./apps/frontend apps/frontend
COPY ./apps/react-client/package.json apps/react-client
COPY ./apps/react-client apps/react-client

# install node_modules
RUN npm install
RUN yarn lib:build

CMD [ "yarn", "workspace", "frontend", "dev" ]
CMD [ "yarn", "workspace", "react-client", "dev" ]

0 comments on commit 3fd5253

Please sign in to comment.