migra/docker-entrypoint.sh
Nico Nußbaum 01acaf2eda
Fix container image build (#178)
Fixes djrobstep/migra#177
Use python:3.9-alpine as base to reduce reliance on alpine maintainers
for python and remove already provided packages (python3, python3-dev,
ca-certificates).
Remove bash since there is already a shell provided and the
entrypoint-script is not using bash-exclusive syntax.
Change entrypoint-script's shebang from bash to sh & fix
array-to-string assignment see https://github.com/koalaman/shellcheck/wiki/SC2124
2021-05-20 13:21:07 +10:00

12 lines
131 B
Bash
Executable File

#!/usr/bin/env sh
set -e
if [ "$1" = 'migra' ]; then
if [ "${MIGRA_LOG_COMMAND}" = 'true' ]; then
echo "$*"
fi
fi
exec "$@"