Skip to content

Commit

Permalink
Merge pull request #45 from infoforcefeed/fixin-dockorrrrr
Browse files Browse the repository at this point in the history
lololol
  • Loading branch information
cquinlan authored Oct 17, 2023
2 parents 473360c + ee993b9 commit de665fb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN npm install --production --silent && mv node_modules ../
COPY . .
RUN chown -R node /usr/src/app
USER node
ENTRYPOINT ["/bin/sh" , "-c" , "scooper-bot.sh", "-t ${TOKEN} -u ${USER_ID} -S ${SALT}"]
ENTRYPOINT ["/bin/sh", "-c", "./entrypoint.sh", "-t ${TOKEN} -u ${USER_ID} -S ${SALT}"]
20 changes: 20 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh

#export TELEGRAM_TOKEN=nope
#export TELEGRAM_USER_ID=nope
#export IFF_SUBMISSION_SALT=nope

while getopts t:u:S: flag
do
case "${flag}" in
t) TELEGRAM_TOKEN=${OPTARG};;
u) TELEGRAM_USER_ID=${OPTARG};;
S) IFF_SUBMISSION_SALT=${OPTARG};;
esac
done

echo "TOKEN: $TELEGRAM_TOKEN"
echo "USER ID: $TELEGRAM_USER_ID"
echo "SALT: $IFF_SUBMISSION_SALT"

npm start

0 comments on commit de665fb

Please sign in to comment.