Add entrypoints to correct folders
This commit is contained in:
parent
b853d766e4
commit
35d7adc00f
6 changed files with 61 additions and 3 deletions
|
@ -14,7 +14,7 @@ ENV USER=container HOME=/home/container
|
|||
|
||||
STOPSIGNAL SIGINT
|
||||
|
||||
COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh
|
||||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
16
dart/3.3/entrypoint.sh
Normal file
16
dart/3.3/entrypoint.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/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 Dart version
|
||||
dart --version
|
||||
|
||||
# Replace startup variables
|
||||
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
|
||||
echo ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
|
||||
# Run the server
|
||||
eval ${MODIFIED_STARTUP}
|
|
@ -14,7 +14,7 @@ ENV USER=container HOME=/home/container
|
|||
|
||||
STOPSIGNAL SIGINT
|
||||
|
||||
COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh
|
||||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
16
dart/stable/entrypoint.sh
Normal file
16
dart/stable/entrypoint.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/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 Dart version
|
||||
dart --version
|
||||
|
||||
# Replace startup variables
|
||||
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
|
||||
echo ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
|
||||
# Run the server
|
||||
eval ${MODIFIED_STARTUP}
|
Loading…
Add table
Add a link
Reference in a new issue