[add] agent-browser
This commit is contained in:
parent
c5bcf5824a
commit
50e6115351
1 changed files with 14 additions and 8 deletions
|
|
@ -30,20 +30,26 @@ RUN curl -fsSL https://bun.sh/install | bash
|
|||
# --- NEW SECTION: RUST SETUP ---
|
||||
# 5. Install Rust (Official Script)
|
||||
# Installs Cargo, Rustc, Rustfmt, etc.
|
||||
#ENV RUSTUP_HOME=/root/.rustup
|
||||
#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
|
||||
ENV RUSTUP_HOME=/root/.rustup
|
||||
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
|
||||
|
||||
# install https://agent-browser.dev
|
||||
RUN cargo install agent-browser && \
|
||||
agent-browser install # Download Chrome (first time)
|
||||
|
||||
# --- NEW SECTION: GO SETUP ---
|
||||
# 6. Install Go (Latest Stable)
|
||||
# We target 'linux-arm64' because you are on Apple Silicon (M3).
|
||||
#ARG GO_VER=1.23.4
|
||||
#RUN curl -OL https://golang.org/dl/go${GO_VER}.linux-arm64.tar.gz && \
|
||||
# tar -C /usr/local -xzf go${GO_VER}.linux-arm64.tar.gz && \
|
||||
# rm go${GO_VER}.linux-arm64.tar.gz
|
||||
#ARG GO_VER=1.26.1
|
||||
#ARG ARCH=amd64
|
||||
#RUN curl -OL https://golang.org/dl/go${GO_VER}.linux-${ARCH}.tar.gz && \
|
||||
# tar -C /usr/local -xzf go${GO_VER}.linux-${ARCH}.tar.gz && \
|
||||
# rm go${GO_VER}.linux-${ARCH}.tar.gz
|
||||
#ENV PATH="/usr/local/go/bin:$PATH"
|
||||
|
||||
|
||||
# 6a basex https://files.basex.org/releases/12.2/BaseX122.zip
|
||||
ARG BASEX_VER=12.2/BaseX122.zip
|
||||
RUN curl -fsSL https://files.basex.org/releases/${BASEX_VER} -o temp.zip || { echo "Download failed"; exit 1; } && \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue