Jacob lives for another 17 years - he was ready to die after seeing Joseph, but God gave him many more years to enjoy his company.
So Jacob blesses Joseph's 2 sons. Joseph is unhappy that he chooses Ephraim for the better blessing and tries to move his hands, but Jacob says he knows what God wants and leaves them there.
Jacob gives the blessings to his sons - I am copying this:
2 “Come and listen, you sons of Jacob;
listen to Israel, your father.
3 “Reuben, you are my firstborn, my strength,
the child of my vigorous youth.
You are first in rank and first in power.
4 But you are as unruly as a flood,
and you will be first no longer.
For you went to bed with my wife;
you defiled my marriage couch.
5 “Simeon and Levi are two of a kind;
their weapons are instruments of violence.
6 May I never join in their meetings;
may I never be a party to their plans.
For in their anger they murdered men,
and they crippled oxen just for sport.
7 A curse on their anger, for it is fierce;
a curse on their wrath, for it is cruel.
I will scatter them among the descendants of Jacob;
I will disperse them throughout Israel.
8 “Judah, your brothers will praise you.
You will grasp your enemies by the neck.
All your relatives will bow before you.
9 Judah, my son, is a young lion
that has finished eating its prey.
Like a lion he crouches and lies down;
like a lioness—who dares to rouse him?
10 The scepter will not depart from Judah,
nor the ruler’s staff from his descendants,[g]
until the coming of the one to whom it belongs,[h]
the one whom all nations will honor.
11 He ties his foal to a grapevine,
the colt of his donkey to a choice vine.
He washes his clothes in wine,
his robes in the blood of grapes.
12 His eyes are darker than wine,
and his teeth are whiter than milk.
13 “Zebulun will settle by the seashore
and will be a harbor for ships;
his borders will extend to Sidon.
14 “Issachar is a sturdy donkey,
resting between two saddlepacks.[i]
15 When he sees how good the countryside is
and how pleasant the land,
he will bend his shoulder to the load
and submit himself to hard labor.
16 “Dan will govern his people,
like any other tribe in Israel.
17 Dan will be a snake beside the road,
a poisonous viper along the path
that bites the horse’s hooves
so its rider is thrown off.
18 I trust in you for salvation, O Lord!
19 “Gad will be attacked by marauding bands,
but he will attack them when they retreat.
20 “Asher will dine on rich foods
and produce food fit for kings.
21 “Naphtali is a doe set free
that bears beautiful fawns.
22 “Joseph is the foal of a wild donkey,
the foal of a wild donkey at a spring—
one of the wild donkeys on the ridge.[j]
23 Archers attacked him savagely;
they shot at him and harassed him.
24 But his bow remained taut,
and his arms were strengthened
by the hands of the Mighty One of Jacob,
by the Shepherd, the Rock of Israel.
25 May the God of your father help you;
May the Almighty bless you
with the blessings of the heavens above,
and blessings of the watery depths below,
and blessings of the breasts and womb.
26 May the blessings of your father
surpass the blessings of the ancient mountains,[k]
reaching to the heights of the eternal hills.
May these blessings rest on the head of Joseph,
who is a prince among his brothers.
27 “Benjamin is a ravenous wolf,
devouring his enemies in the morning
and dividing his plunder in the evening.”
Then he dies and there is a period of mourning and Joseph asks permission to take Jacob (Israel) to the burial place where Abraham and Isaac are burried. Pharoah grants permission and sends high level people with him to support the wish.
After that has taken place, Joseph's brothers get all afraid and think he is going to take out punishment on them for what he did to them. Once again he lets them know that what they did for bad, God turned out for good.
Joseph dies at 110 and they place his body in a coffin in Egypt and he asks his brothers that if they ever leave to take his bones with them.