From 53216a91c913a6d299fac2d2a67958e2ff1e506a Mon Sep 17 00:00:00 2001 From: fvolz Date: Fri, 20 Sep 2024 10:51:28 +0200 Subject: [PATCH] Update Dockerfile --- react-front-end/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/react-front-end/Dockerfile b/react-front-end/Dockerfile index cbf8d0f..21012bf 100644 --- a/react-front-end/Dockerfile +++ b/react-front-end/Dockerfile @@ -1,11 +1,13 @@ FROM node -WORKDIR /clientapp +WORKDIR /usr/src/client -COPY . . +COPY package*.json ./ RUN npm install +COPY . . + EXPOSE 3000 -CMD [ "npm", "start" ] \ No newline at end of file +CMD [ "npm", "start" ]