FROM ubuntu:jammy

RUN apt update
RUN apt install \
        build-essential \
        libjemalloc-dev \
        libssl-dev \
        ruby \
        wget -y

COPY ./thread_test.rb /thread_test.rb

CMD cat /etc/lsb-release && \
    gcc --version && \
    ldd $(which ruby) && \
    ruby --version && ruby /thread_test.rb
