forked from EllieBotDevs/elliebot
dockerfile improvements, changed env prefix to bot_
This commit is contained in:
parent
9cd67a22c4
commit
600625c83c
3 changed files with 8 additions and 4 deletions
|
@ -10,4 +10,5 @@
|
|||
|
||||
# ignore bin and obj folders in projects
|
||||
src/**/bin/*
|
||||
src/**/obj/*
|
||||
src/**/obj/*
|
||||
src/EllieBot/data/creds.yml
|
|
@ -57,4 +57,4 @@ VOLUME [ "/app/data" ]
|
|||
|
||||
# Set the entrypoint and default command
|
||||
ENTRYPOINT [ "/usr/local/sbin/docker-entrypoint.sh" ]
|
||||
CMD ./EllieBot
|
||||
CMD [ "./EllieBot" ]
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue