We develop a fully relativistic DWIA model for photonuclear reactions using the relativistic mean field theory for the bound state and the Pauli reduction of the scattering state which is calculated from a relativistic optical potential. Results for the 12C(gamma,p) and 16O(gamma,p) differential cross sections and photon asymmetries are displayed in a photon energy range between 60 and 257 MeV, and compared with nonrelativistic DWIA calculations. The effects of the spinor distortion and of the effective momentum approximation for the scattering state are discussed. The sensitivity of the model to different prescriptions for the one-body current operator is investigated. The off-shell ambiguities are large in (gamma,p) calculations, and even larger in (gamma,n) knockout.