diff --git a/docker-images/Dockerfile.agent b/docker-images/Dockerfile.agent index 2d76958..afaf5d7 100644 --- a/docker-images/Dockerfile.agent +++ b/docker-images/Dockerfile.agent @@ -43,7 +43,8 @@ ENV CARGO_HOME=/root/.cargo ENV PATH="$CARGO_HOME/bin:$PATH" RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile default -RUN cargo install tinygo + + # install https://agent-browser.dev RUN cargo install agent-browser && \ agent-browser install # Download Chrome (first time) @@ -58,6 +59,13 @@ RUN curl -OL https://golang.org/dl/go${GO_VER}.linux-${ARCH}.tar.gz && \ rm go${GO_VER}.linux-${ARCH}.tar.gz ENV PATH="/usr/local/go/bin:$PATH" +# tinygo Download the latest binary tarball +ARG TGO_VER=0.40.1 +curl -LO https://github.com/tinygo-org/tinygo/releases/download/v${TGO_VER}/tinygo_${TGO_VER}_amd64.tar.gz +# Extract to /usr/local +sudo tar -C /usr/local -xzf tinygo_${TGO_VER}_amd64.tar.gz +# Add TinyGo to your PATH (add to ~/.bashrc or ~/.zshrc for persistence) +ENV PATH="$PATH:/usr/local/tinygo/bin" # 6a basex https://files.basex.org/releases/12.2/BaseX122.zip ARG BASEX_VER=12.2/BaseX122.zip