From c02572c2ef837c391b9e5ed14dd00f451ff31403 Mon Sep 17 00:00:00 2001 From: Mike Conrad Date: Mon, 9 Jun 2025 16:27:58 -0400 Subject: [PATCH] Fix minor issue with Dockerfile --- examples/react-app/.dockerignore | 3 ++- examples/react-app/Dockerfile | 4 +++- slides.md | 1 - 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/react-app/.dockerignore b/examples/react-app/.dockerignore index 04c01ba..94bfd91 100644 --- a/examples/react-app/.dockerignore +++ b/examples/react-app/.dockerignore @@ -1,2 +1,3 @@ node_modules/ -dist/ \ No newline at end of file +dist/ +slim.report.json diff --git a/examples/react-app/Dockerfile b/examples/react-app/Dockerfile index e87dd47..c93c945 100644 --- a/examples/react-app/Dockerfile +++ b/examples/react-app/Dockerfile @@ -10,8 +10,10 @@ RUN yarn FROM install-deps AS develop WORKDIR /app -COPY --from=install-deps /app/node_modules /app/node_modules COPY . . + +# Broken, why? +#ENTRYPOINT ["yarn", "dev"] ENTRYPOINT ["yarn", "dev", "--host=0.0.0.0"] EXPOSE 5173 diff --git a/slides.md b/slides.md index bc0491a..19feee6 100644 --- a/slides.md +++ b/slides.md @@ -316,7 +316,6 @@ RUN yarn # Stage 3 Development FROM install-deps AS develop WORKDIR /app -COPY --from=install-deps /app/node_modules /app/node_modules COPY . . ENTRYPOINT ["yarn", "dev", "--host=0.0.0.0"] EXPOSE 5173