Republic of Ireland Under 21s were edged out of a close game against Portugal on Monday, losing 2-1 at Oriel Park.