diff --git a/bot/yagpdb/Dockerfile b/bot/yagpdb/Dockerfile index f0406c1..9c0695d 100644 --- a/bot/yagpdb/Dockerfile +++ b/bot/yagpdb/Dockerfile @@ -37,7 +37,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container -COPY --from=builder /appbuild/yagpdb/cmd/yagpdb/yagpdb yagpdb +COPY --from=builder /appbuild/yagpdb/cmd/yagpdb/yagpdb /usr/bin/yagpdb +RUN chmod +x /usr/bin/yagpdb STOPSIGNAL SIGINT diff --git a/bot/yagpdb/entrypoint.sh b/bot/yagpdb/entrypoint.sh index 71949ea..d72adfe 100644 --- a/bot/yagpdb/entrypoint.sh +++ b/bot/yagpdb/entrypoint.sh @@ -26,13 +26,12 @@ TZ=${TZ:-UTC} export TZ -# Set environment variable that holds the Internal Docker IP -INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}') -export INTERNAL_IP - # Switch to the container's working directory cd /home/container || exit 1 +# Add custom binary +export PATH=$PATH:/root/.local/bin + # Convert all of the "{{VARIABLE}}" parts of the command into the expected shell # variable format of "${VARIABLE}" before evaluating the string and automatically # replacing the values.