- 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)
10 lines
118 B
Bash
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 "$@"
|