Files
yolks/bun/entrypoint.sh
mratox cafdcdc0f5 Added Bun Image (#179)
* Add bun images

---------

Co-authored-by: Quinten <67589015+QuintenQVD0@users.noreply.github.com>
2023-08-27 13:08:02 +02:00

17 lines
390 B
Bash

#!/bin/bash
cd /home/container
# Make internal Docker IP address available to processes.
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
export INTERNAL_IP
# Print Bun Version
bun -v
# Replace Startup Variables
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
# Run the Server
eval ${MODIFIED_STARTUP}