FROM ghcr.io/hyperk/dependencies1:latest # Allow users to specify the hk-config tag # If no tag is defined it will default to master ARG HKCONFIG_VERSION=master COPY . /usr/local/hk/hk-pilot WORKDIR /usr/local/hk/hk-pilot SHELL ["/bin/bash", "-c"] RUN --mount=type=ssh mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts RUN --mount=type=ssh ./get_release.sh -p ALL -s -v ${HKCONFIG_VERSION} RUN --mount=type=ssh ./build.sh -p ALL build