FROM http-garden-soil:latest

RUN apt -y update && apt -y upgrade

ARG APP_REPO
RUN git clone --recurse-submodules "$APP_REPO"

ARG APP_VERSION
RUN cd /app/waitress && git pull && git checkout "$APP_VERSION" && pip3 install . --break-system-packages

COPY server.py .
CMD ["afl-showmap", "-o", "/tmp/trace", "-t", "2147483647", "--", "python3", "server.py"]
