I have a docker container that, at start up, executes a shell script (startService.sh), which uses the "source" linux keyword (which my docker container doesn't like). I'm seeing the error message below when running my image:
./startService.sh: 6: ./startService.sh: source: not found
Why am I seeing this error? Can one not use the "source" linux command in a script in an image?
Dockerfile:
FROM openjdk:8
VOLUME /opt/att/ajsc/config
COPY startService.sh /startService.sh
RUN chmod 777 /startService.sh
ENTRYPOINT ./startService.sh
startService.sh
#!/bin/sh
export AJSC_HOME=/opt/att/ajsc
export AJSC_CONFIG_HOME=${AJSC_HOME}/config
source /opt/att/ajsc/etc/config /run.source