Skip to content

Commit 8bacfad

Browse files
committed
chore(docker): fix rustup install
1 parent 0a5c067 commit 8bacfad

3 files changed

+7
-7
lines changed

docker/Dockerfile.brave

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ WORKDIR /app
55
# Get Ubuntu packages
66
RUN apt-get update && apt-get install -y \
77
build-essential \
8-
cargo
8+
curl
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 rustup update stable
15+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && source $HOME/.cargo/env && rustup update stable
1616
RUN RUST_LOG=error cargo install --no-default-features --path headless_browser
1717

1818
FROM ubuntu:25.04

docker/Dockerfile.headless_shell_playwright

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

15-
RUN rustup update stable
15+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && source $HOME/.cargo/env && rustup update stable
1616
RUN RUST_LOG=error cargo install --no-default-features --path headless_browser
1717

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

docker/Dockerfile.lightpanda

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:22.04 AS pandabuilder
1+
FROM ubuntu:25.04 AS pandabuilder
22

33
ARG ZIG=0.13.0
44
ARG ZIG_MINISIG=RWSGOq2NVecA2UPNdBUZykf1CCb147pkmdtYxgb3Ti+JO/wCYvhbAb/U
@@ -67,7 +67,7 @@ RUN curl -L -o libc_v8.a https://github.com/lightpanda-io/zig-v8-fork/releases/d
6767
# build release
6868
RUN make build
6969

70-
FROM ubuntu:22.04 AS rustbuilder
70+
FROM ubuntu:25.04 AS rustbuilder
7171

7272
WORKDIR /app
7373

@@ -81,10 +81,10 @@ COPY ../headless_browser_lib/ ./headless_browser_lib
8181
COPY ../benches/ ./benches
8282
COPY ../Cargo.* .
8383

84-
RUN rustup update stable
84+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && source $HOME/.cargo/env && rustup update stable
8585
RUN RUST_LOG=error cargo install --no-default-features --path headless_browser
8686

87-
FROM ubuntu:22.04
87+
FROM ubuntu:25.04
8888

8989
ARG VERSION=latest
9090

0 commit comments

Comments
 (0)