ft_transcendence/src/icons/entrypoint.sh
Maieul BOYER a2b896916e feat(infra): Added way to run custom commands for different services
- new `EXTRA_FILES` docker build args to specify directory to be copied at
  /extra
- run `${SERVICE}/entrypoint.sh` as docker entry point
- added src/empty folder to so if EXTRA_FILES isn't set => use empty
  folder (since no conditional COPY)
2025-08-04 14:33:34 +02:00

10 lines
118 B
Bash

#!/bin/sh
set -e
set -x
# do anything here
cp -r /extra /files
# run the CMD [ ... ] from the dockerfile
exec "$@"