Commit 56015c1 1 parent 8bacfad commit 56015c1 Copy full SHA for 56015c1
File tree 3 files changed +12
-5
lines changed
3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ COPY ../headless_browser_lib/ ./headless_browser_lib
12
12
COPY ../benches/ ./benches
13
13
COPY ../Cargo.* .
14
14
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
16
18
RUN RUST_LOG=error cargo install --no-default-features --path headless_browser
17
19
18
20
FROM ubuntu:25.04
Original file line number Diff line number Diff line change @@ -5,14 +5,17 @@ WORKDIR /app
5
5
# Get Ubuntu packages
6
6
RUN apt-get update && apt-get install -y \
7
7
build-essential \
8
- cargo
8
+ bash
9
9
10
10
COPY ../headless_browser/ ./headless_browser
11
11
COPY ../headless_browser_lib/ ./headless_browser_lib
12
12
COPY ../benches/ ./benches
13
13
COPY ../Cargo.* .
14
14
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
+
16
19
RUN RUST_LOG=error cargo install --no-default-features --path headless_browser
17
20
18
21
FROM mcr.microsoft.com/playwright:v1.50.1-noble
Original file line number Diff line number Diff line change @@ -74,14 +74,16 @@ WORKDIR /app
74
74
# Get Ubuntu packages
75
75
RUN apt-get update && apt-get install -y \
76
76
build-essential \
77
- cargo
77
+ curl
78
78
79
79
COPY ../headless_browser/ ./headless_browser
80
80
COPY ../headless_browser_lib/ ./headless_browser_lib
81
81
COPY ../benches/ ./benches
82
82
COPY ../Cargo.* .
83
83
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
85
87
RUN RUST_LOG=error cargo install --no-default-features --path headless_browser
86
88
87
89
FROM ubuntu:25.04
You can’t perform that action at this time.
0 commit comments