Move wait-for-it.sh to $PATH and make executable.

Given that this script is used internally as part of the docker image, it makes sense to ensure it is added to the path directly within the Dockerfile itself, rather than from the docker-compose.yml file. It also needs to be made executable, otherwise the entrypoint command within the docker-compose.yml file will not be able to run it.
Shrike 2022-09-23 11:41:02 +01:00 committed by GitHub
parent b1b05107a7
commit 488b478101
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,9 @@ RUN ( \
# Add run script
# Trigger to perform first boot operations
ADD run.sh /run.sh
# Ensure that wait for it is included in the path and executable
ADD wait-for-it.sh /usr/local/bin/wait-for-it.sh
RUN chmod +x /usr/local/bin/wait-for-it.sh
RUN mv /etc/apache2/sites-available/misp-ssl.conf /etc/apache2/sites-available/misp-ssl.conf.bak
ADD misp-ssl.conf /etc/apache2/sites-available/misp-ssl.conf
RUN chmod 0755 /run.sh && touch /.firstboot.tmp