FROM pre_android/ready # Set up node RUN npm install -g n && n install 22.14.0 && n use 22.14.0 && hash -r RUN node --version # Set up httptoolkit-server RUN git clone https://github.com/httptoolkit/httptoolkit-server /httptoolkit-server WORKDIR /httptoolkit-server RUN git checkout 490b1b6f5180ad634b60997778c5f96b2f62bf0b \ && npm i && npm run build:src ADD entrypoint.sh /entrypoint.sh ARG PROXY_PORT ARG SERVER_PORT ARG MONITORING_API_PORT ARG LOOPBACK_PORT ENV PROXY_PORT=${PROXY_PORT} ENV SERVER_PORT=${SERVER_PORT} ENV MONITORING_API_PORT=${MONITORING_API_PORT} ENV LOOPBACK_PORT=${LOOPBACK_PORT} ENTRYPOINT /entrypoint.sh