Skip to content

Commit 56015c1

Browse files
committed
chore(docker): fix rust install ubuntu
1 parent 8bacfad commit 56015c1

3 files changed

+12
-5
lines changed

docker/Dockerfile.brave

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ COPY ../headless_browser_lib/ ./headless_browser_lib
1212
COPY ../benches/ ./benches
1313
COPY ../Cargo.* .
1414

15-
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && source $HOME/.cargo/env && rustup update stable
15+
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
16+
ENV PATH="/root/.cargo/bin:${PATH}"
17+
RUN rustup update stable
1618
RUN RUST_LOG=error cargo install --no-default-features --path headless_browser
1719

1820
FROM ubuntu:25.04

docker/Dockerfile.headless_shell_playwright

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ WORKDIR /app
55
# Get Ubuntu packages
66
RUN apt-get update && apt-get install -y \
77
build-essential \
8-
cargo
8+
bash
99

1010
COPY ../headless_browser/ ./headless_browser
1111
COPY ../headless_browser_lib/ ./headless_browser_lib
1212
COPY ../benches/ ./benches
1313
COPY ../Cargo.* .
1414

15-
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && source $HOME/.cargo/env && rustup update stable
15+
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
16+
ENV PATH="/root/.cargo/bin:${PATH}"
17+
RUN rustup update stable
18+
1619
RUN RUST_LOG=error cargo install --no-default-features --path headless_browser
1720

1821
FROM mcr.microsoft.com/playwright:v1.50.1-noble

docker/Dockerfile.lightpanda

+4-2
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,16 @@ WORKDIR /app
7474
# Get Ubuntu packages
7575
RUN apt-get update && apt-get install -y \
7676
build-essential \
77-
cargo
77+
curl
7878

7979
COPY ../headless_browser/ ./headless_browser
8080
COPY ../headless_browser_lib/ ./headless_browser_lib
8181
COPY ../benches/ ./benches
8282
COPY ../Cargo.* .
8383

84-
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && source $HOME/.cargo/env && rustup update stable
84+
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
85+
ENV PATH="/root/.cargo/bin:${PATH}"
86+
RUN rustup update stable
8587
RUN RUST_LOG=error cargo install --no-default-features --path headless_browser
8688

8789
FROM ubuntu:25.04

0 commit comments

Comments
 (0)