ARG VARIANT="bullseye"
# FROM mcr.microsoft.com/vscode/devcontainers/java:0-16-${VARIANT}
FROM openjdk:11

WORKDIR /opt

# RUN apt-get update && \
#     apt-get install -y sudo curl git-core wget unzip

RUN git clone https://github.com/anasfik/flutter-spy.git && \
    cd flutter-spy && \
    chmod +x INSTALLER.sh && \
    ./INSTALLER.sh

RUN wget https://github.com/skylot/jadx/releases/download/v1.4.7/jadx-1.4.7.zip && \
    unzip jadx-1.4.7.zip -d jadx && \
    rm -rf jadx-1.4.7.zip

ENV PATH="/opt/jadx/bin:${PATH}"

WORKDIR /app
VOLUME [ "/app" ]

CMD ["/bin/bash", "-c", "while true; do sleep 1000; done"]