Improve dockerfile to handle localhost install