File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -158,8 +158,7 @@ FROM ekidd/rust-musl-builder
158
158
159
159
# We need to add the source code to the image because ` rust-musl-builder`
160
160
# assumes a UID of 1000, but TravisCI has switched to 2000.
161
- ADD . ./
162
- RUN sudo chown -R rust:rust .
161
+ ADD --chown=rust:rust . ./
163
162
164
163
CMD cargo build --release
165
164
```
Original file line number Diff line number Diff line change 7
7
FROM ekidd/rust-musl-builder AS builder
8
8
9
9
# Add our source code.
10
- ADD . ./
11
-
12
- # Fix permissions on source code.
13
- RUN sudo chown -R rust:rust /home/rust
10
+ ADD --chown=rust:rust . ./
14
11
15
12
# Build our application.
16
13
RUN cargo build
Original file line number Diff line number Diff line change @@ -11,10 +11,7 @@ ARG BASE_IMAGE=ekidd/rust-musl-builder:latest
11
11
FROM ${BASE_IMAGE} AS builder
12
12
13
13
# Add our source code.
14
- ADD . ./
15
-
16
- # Fix permissions on source code.
17
- RUN sudo chown -R rust:rust /home/rust
14
+ ADD --chown=rust:rust . ./
18
15
19
16
# Build our application.
20
17
RUN cargo build --release
You can’t perform that action at this time.
0 commit comments