From 9195e015e7f4e658c4095713947277686bef8d39 Mon Sep 17 00:00:00 2001 From: Noah Richardson Date: Sun, 31 Oct 2021 11:04:23 -0400 Subject: [PATCH] Fix container stopping immediately --- Dockerfile | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b9925ec..b22758b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,4 +6,4 @@ RUN yarn install COPY . ./ EXPOSE 3000 RUN yarn build -RUN yarn serve \ No newline at end of file +CMD yarn serve \ No newline at end of file diff --git a/package.json b/package.json index 6808895..805f963 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", - "serve": "npx serve -l 3000 -s build &" + "serve": "npx serve -l 3000 -s build" }, "eslintConfig": { "extends": [