FROM ubuntu:22.04

WORKDIR /work

RUN apt-get update && \
    apt install -y software-properties-common && \
    add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
    apt-get update && \
    apt-get install -y --only-upgrade libstdc++6

RUN apt-get update && \
    apt install -y python3 python3-pip clang-14 llvm-14 git && \
    apt install -y libflac8 libvorbis-dev libopus0

RUN pip3 install tiktoken tqdm cpp_demangle clang==14

#RUN git clone \
#        --depth 1 \
#        --branch v2.57b \
#        https://github.com/google/AFL.git /afl && \
#    cd /afl && \
#    CFLAGS= CXXFLAGS= AFL_NO_X86=1 make

#RUN git clone \
#        https://github.com/glennrp/libpng.git \
#        /work/TTG-Gen/libpng/libpng && \
#    cd /work/TTG-Gen/libpng/libpng && \
#    git checkout cd0ea2a7f53b603d3d9b5b891c779c430047b39a

COPY ./ /work/
