From 5a7012b7a14dcee85eb89914e2e670b98f84e5c6 Mon Sep 17 00:00:00 2001 From: Peter Muriuki Date: Wed, 14 Aug 2024 12:10:46 +0300 Subject: [PATCH] Run web app in dev mode --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3cde094b7..a671f3656 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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", "--"]