ARG BASE_IMAGE=gordo/base:latest
FROM $BASE_IMAGE

ADD build.sh ${HOME}/build.sh

# build.sh (build the model) as executable default command
RUN cp ${HOME}/build.sh /usr/bin/build \
    && chmod a+x /usr/bin/build

# Switch user
USER gordo

CMD ["build"]
