We propose a novel pipeline for the real-time detection of myocardial infarction from a single heartbeat of a 12-lead electrocardiograms. We do so by merging a real-time R-spike detection algorithm with a deep learning Long-Short Term Memory (LSTM) network-based classifier. A comparative assessment of the classification performance of the resulting system is performed and provided. The proposed algorithm achieves an inter-patient classification accuracy of 95.76% (with a 95% Confidence Interval (CI) of ±2.4%), a recall of 96.67% (±2.4% 95% CI), specificity of 93.64% (±5.7% 95% CI), and the average J-Score is 90.31% (±6.2% 95% CI). These state-of-the-art myocardial infarction detection metrics are extremely promising and could pave the wave for the early detection of myocardial infarctions. This high accuracy is achieved with a processing time of 40 milliseconds, which is most appropriate for online classification as the time between fast heartbeats is around 300 milliseconds.