In this paper, the design of task offloading and computing strategy in a mobile edge computing (MEC) system deployed over a reconfigurable intelligent surface (RIS)-aided orthogonal frequency division multiplexing based non-orthogonal multiple access (OFDM-NOMA) relay network is studied, where both a relay node and an MEC server located at an access point help a user terminal accomplish task computing. Our objective is to minimize energy consumption for communication and computation at the user terminal and the relay subject to a given task executing delay constraint. To this end, a novel protocol is first proposed to enable the user terminal and the relay to fully utilize the high passive beamforming gain provided by RIS and the high spectral efficiency offered by OFDM and NOMA techniques for task offloading. Then, under the newly proposed protocol, a resource allocation optimization problem is formulated, where RIS reflection coefficients, task offloading and computing time allocation, subcarrier and power allocation, task partition, and CPU frequency of the MEC server are jointly optimized. Because the numerous optimization variables are coupled with each other and integer programming is involved for subcarrier allocation optimization, the formulated problem is a mixed integer programming and highly non-convex problem that is hard to tackle. To address this problem, an efficient algorithm is devised to achieve its solution by employing alternating optimization, layer optimization, big-M formulation and successive convex approximation techniques. Simulation results validate that substantial energy savings can be achieved by employing RIS and OFDM-NOMA techniques in wireless relaying-based MEC systems.