dockerfile improvements, changed env prefix to bot_

This commit is contained in:
Toastie 2025-02-13 12:38:00 +13:00
parent 9cd67a22c4
commit 600625c83c
Signed by: toastie_t0ast
GPG key ID: 0861BE54AD481DC7
3 changed files with 8 additions and 4 deletions

View file

@ -10,4 +10,5 @@
# ignore bin and obj folders in projects
src/**/bin/*
src/**/obj/*
src/**/obj/*
src/EllieBot/data/creds.yml

View file

@ -57,4 +57,4 @@ VOLUME [ "/app/data" ]
# Set the entrypoint and default command
ENTRYPOINT [ "/usr/local/sbin/docker-entrypoint.sh" ]
CMD ./EllieBot
CMD [ "./EllieBot" ]

View file

@ -5,9 +5,12 @@ set -e
data_init="/app/data_init"
data="/app/data"
ls $data
# Merge data_init into data without overwrites.
# cp -R -n "$data_init/." "$data/"
cp -R "$data_init/." "$data/"
cp -R -n $data_init/* $data
cp -n "$data_init/creds_example.yml" "$data/creds.yml"
ls $data
echo "Yt-dlp update"
# TODO: Update yt-dlp. It should not crash the entrypoint if ca-certificates is not installed