update build function name and switch to ENTRYPOINT