\documentclass{minimal}
\usepackage{minted}

\begin{document}

\begin{minted}{dockerfile}
  FROM java:8
\end{minted}

\end{document}
