Skip to content

Commit

Permalink
update build to use start.sh for automation (uc-cdis#59)
Browse files Browse the repository at this point in the history
Co-authored-by: Shawn O'Connor <[email protected]>
  • Loading branch information
ocshawn and Shawn O'Connor authored Dec 20, 2024
1 parent b63788d commit e6c7543
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
5 changes: 5 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -e
echo "starting server"
npm run start

0 comments on commit e6c7543

Please sign in to comment.