From e6c754320e8f9fb9ef6fd51cc64af4f89a1e0127 Mon Sep 17 00:00:00 2001 From: Shawn O'Connor Date: Fri, 20 Dec 2024 14:54:07 -0600 Subject: [PATCH] update build to use start.sh for automation (#59) Co-authored-by: Shawn O'Connor --- Dockerfile | 3 ++- start.sh | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 start.sh diff --git a/Dockerfile b/Dockerfile index a513973..89c6ec0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ RUN npm ci COPY ./src ./src COPY ./public ./public COPY ./config ./config +COPY ./start.sh ./ RUN npm install @swc/core @napi-rs/magic-string && \ npm run build @@ -27,4 +28,4 @@ COPY --from=builder /gen3/.next/static ./.next/static USER nextjs ENV PORT=3000 -CMD ["node", "server.js"] +CMD bash ./start.sh diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..5cf0f39 --- /dev/null +++ b/start.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +set -e +echo "starting server" +npm run start