Skip to content

Commit

Permalink
add start
Browse files Browse the repository at this point in the history
  • Loading branch information
craigrbarnes committed Dec 10, 2024
1 parent db9ac7d commit b5d66d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ COPY --from=builder --chown=nextjs:nextjs /gen3/.next/standalone ./
COPY --from=builder --chown=nextjs:nextjs /gen3/.next/static ./.next/static

ENV PORT=3000
CMD ["node", "server.js"]
CMD bash ./start.sh

Check warning on line 32 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build Image and Push to Quay / Build Image and Push

JSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals

JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals More info: https://docs.docker.com/go/dockerfile/rule/json-args-recommended/
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"
node server.js

0 comments on commit b5d66d6

Please sign in to comment.