From 32d5159188cd61b9793f62bc43af7b3bc0230804 Mon Sep 17 00:00:00 2001 From: Cannon Lock Date: Thu, 28 Sep 2023 14:57:50 -0500 Subject: [PATCH] Build on container start --- Dockerfile | 3 +-- server/server.sh | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 server/server.sh diff --git a/Dockerfile b/Dockerfile index 7e9d0d19..bd9c9dde 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,5 @@ COPY . ./ RUN yarn cache clean RUN yarn add -RUN yarn run bundle -CMD ["yarn", "run", "server"] +CMD ["sh", "server/server.sh"] diff --git a/server/server.sh b/server/server.sh new file mode 100644 index 00000000..866a1013 --- /dev/null +++ b/server/server.sh @@ -0,0 +1,2 @@ +yarn run bundle +yarn run server \ No newline at end of file