fix(yagpdb): add binary

This commit is contained in:
darksaid98 committed 2024-12-31 05:08:25 +01:00
1 parent 445a2a15a0
commit aad63d8c4f
2 files changed
+5 -5

No files matched your search

+2 -1
View File
@@ -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
+3 -4
View File
@@ -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.