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