From d75b5f3c661fce0268c5d29896475b48b673f4b2 Mon Sep 17 00:00:00 2001 From: Drew Bednar Date: Thu, 1 Apr 2021 22:54:23 -0400 Subject: [PATCH] fixing Dockerfile cmd --- README.md | 9 ++++++++- docker/Dockerfile | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b1a06bd..9676fcc 100644 --- a/README.md +++ b/README.md @@ -26,4 +26,11 @@ docker push registry.runcible.io/runcible-metabot: ``` docker run --rm -e KEYBASE_USERNAME="spoonbot" -e KEYBASE_PAPERKEY="$KEYBASE_PAPERKEY" -it runcible/runcible-metabot -``` \ No newline at end of file +``` + +### Debugging the container + +You need to override the entrypoint script (`/usr/bin/entrypoint.sh`) with something else like just the bash bin. +``` +docker run --rm -e KEYBASE_USERNAME="spoonbot" -e KEYBASE_PAPERKEY="$KEYBASE_PAPERKEY" -it --entrypoint=bash registry.runcible.io/runcible-metabot:0.0.1 +``` diff --git a/docker/Dockerfile b/docker/Dockerfile index 4debdbe..c9ff930 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -14,5 +14,5 @@ RUN pip install --trusted-host pypi.python.org -r requirements.txt COPY metabot/ /app RUN chown -R keybase:keybase /app -# Run bot.py when the container launches -CMD ["python3", "-m","notifications.py"] \ No newline at end of file +# Run notifications when the container launches +CMD ["python3", "notifications.py"] \ No newline at end of file