diff --git a/Dockerfile b/Dockerfile index 0649530..8ace480 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,4 +12,4 @@ WORKDIR /app # Build and test the source code COPY . . -ENTRYPOINT ["/bin/bash", "-c"] \ No newline at end of file +ENTRYPOINT [ "./bin/docker-entrypoint.sh" ] \ No newline at end of file diff --git a/bin/docker-entrypoint.sh b/bin/docker-entrypoint.sh new file mode 100755 index 0000000..d341387 --- /dev/null +++ b/bin/docker-entrypoint.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +# Why need this file? +# Because we need to run `source ./bin/run.sh ` in the container +source ./bin/run.sh $1 $2 \ No newline at end of file