Skip to content

Commit

Permalink
Give docker build a build context
Browse files Browse the repository at this point in the history
This fancy docker command somehow wasn't passing a build context to the
docker image, so nothing was in the runtime image
  • Loading branch information
beeceej committed Jul 22, 2023
1 parent 9559662 commit 2474a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ cp "$GITHUB_EVENT_PATH" event.json
cat event.json
ls -lah

echo -e "FROM beeceej/lgtm:${latest_tag}\nADD . .\nENTRYPOINT [ \"/bin/lgtm\" ]" | docker build --rm -t runtime -
echo -e "FROM beeceej/lgtm:${latest_tag}\nADD . .\nENTRYPOINT [ \"/bin/lgtm\" ]" | docker build --rm -t runtime -f - .
docker run --rm -e GH_TOKEN -e GITHUB_EVENT_PATH="./event.json" runtime:latest

0 comments on commit 2474a61

Please sign in to comment.