We report on the realization of a double-barrier resonant tunneling diode for cavity polaritons, by lateral patterning of a one-dimensional cavity. Sharp transmission resonances are demonstrated when sending a polariton flow onto the device. We show that a nonresonant beam can be used as an optical gate and can control the device transmission. Finally, we evidence distortion of the transmission profile when going to the high-density regime, signature of polariton-polariton interactions.