Skip to content

Commit

Permalink
add entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasMerz committed Nov 11, 2024
1 parent 548e04c commit e042a01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ COPY . .
RUN npm install
RUN npm run build

CMD ["node", "/app/dist/index.js"]
COPY "entrypoint.sh" "/usr/bin/entrypoint"
ENTRYPOINT ["entrypoint"]
CMD [""]
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
set -e

sh -c "node /usr/bin/index.js $*"

0 comments on commit e042a01

Please sign in to comment.