FROM debian

RUN apt update
RUN yes y | apt upgrade

RUN apt install make
RUN yes y | apt install git
RUN yes | apt install wget
RUN yes y | apt install g++

# install the dpp lib
RUN yes y | apt install cmake
RUN yes y | apt install wget
RUN yes y | apt install libsodium23
RUN yes y | apt install libopus0
RUN wget -O dpp.deb https://dl.dpp.dev/
RUN dpkg -i dpp.deb

RUN mkdir /app

COPY . /app

WORKDIR /app

RUN make

COPY src/config.h src/config.h

ENTRYPOINT ["./PyMenu", "$BOT_TOKEN"]