Modified update function in dockerfile