Skip to content

Commit

Permalink
Run web app in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
peterMuriuki committed Aug 14, 2024
1 parent c5f44e8 commit 5a7012b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,17 @@ COPY --from=build /project/app/build /usr/src/web

WORKDIR /usr/src/app

COPY --from=nodejsbuild /usr/src/express-server/build /usr/src/app
COPY --from=nodejsbuild /usr/src/express-server/node_modules /usr/src/app/node_modules
COPY --from=nodejsbuild /usr/src/express-server /usr/src/app
# COPY --from=nodejsbuild /usr/src/express-server/node_modules /usr/src/app/node_modules

RUN pip install -r /usr/src/app/importer/requirements.txt
RUN pip install -r /usr/src/app/build/importer/requirements.txt

ENV EXPRESS_REACT_BUILD_PATH /usr/src/web/

EXPOSE 3000

CMD [ "/bin/sh", "-c", "/usr/local/bin/app.sh && node /usr/src/app/dist" ]
RUN corepack enable

CMD [ "/bin/sh", "-c", "/usr/local/bin/app.sh && yarn dev" ]

ENTRYPOINT ["/sbin/tini", "--"]

0 comments on commit 5a7012b

Please sign in to comment.