\documentclass[a4paper,11pt]{article}
\usepackage[polish]{babel}
\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc}
\usepackage{fourier}
\usepackage[scaled=0.85]{beramono}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{tcolorbox}
\usepackage{ulem}
\usepackage{geometry}
\lstloadlanguages{Python}
\tcbuselibrary{listings}

\geometry{width=126mm}

\begin{document}

\begin{tcblisting}{colback=black!70,colframe=black!70,colupper=white,
listing only,every listing line={\textcolor{gray!50}
  {\small\ttfamily\bfseries \$> }}}
pdflatex main.tex
biblex main
pdflatex main.tex
pdflatex main.tex
\end{tcblisting}

\end{document}