Skip to content

Commit

Permalink
add entrypoint.sh to use env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
wuminzhe committed Sep 21, 2023
1 parent 2af2459 commit de8344c
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 @@ -12,4 +12,4 @@ WORKDIR /app
# Build and test the source code
COPY . .

ENTRYPOINT ["/bin/bash", "-c"]
ENTRYPOINT [ "./bin/docker-entrypoint.sh" ]
5 changes: 5 additions & 0 deletions bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

# Why need this file?
# Because we need to run `source ./bin/run.sh <DEPLOY_ADDRESS> <RELAYER_ADDRESS>` in the container
source ./bin/run.sh $1 $2

0 comments on commit de8344c

Please sign in to comment.