Scripture opens with an account of the Creation. The moral of the story is that all things were created good and to be good. The ultimate meaning of life is revealed throughout all Scripture, but the most express points are brought out in the fifth and sixth chapters of St. John, where we read that all will be resurrected on the last day, some to life and some to death. Chapter 6 reveals that those who with reverence for God, faith and active love sacramentally partake of Christ's Body and Blood shall be raised to eternal life on the last day. The purpose of life is Communion with God, to receive this resurrection to life by first (read Mark 1) repenting, believing in the good tidings of the Kingdom, and becoming part of it and bring others with you, beginning the life of the Kingdom even now, extending to eternal life. Lord, grant us the grace to desire it. For a deeper look at this, please see the following videos:
Fr. Dumitru Staniloae on the meaning of life