commit
441e6222bb
|
@ -158,8 +158,7 @@ FROM ekidd/rust-musl-builder
|
|||
|
||||
# We need to add the source code to the image because `rust-musl-builder`
|
||||
# assumes a UID of 1000, but TravisCI has switched to 2000.
|
||||
ADD . ./
|
||||
RUN sudo chown -R rust:rust .
|
||||
ADD --chown=rust:rust . ./
|
||||
|
||||
CMD cargo build --release
|
||||
```
|
||||
|
|
|
@ -7,10 +7,7 @@
|
|||
FROM ekidd/rust-musl-builder AS builder
|
||||
|
||||
# Add our source code.
|
||||
ADD . ./
|
||||
|
||||
# Fix permissions on source code.
|
||||
RUN sudo chown -R rust:rust /home/rust
|
||||
ADD --chown=rust:rust . ./
|
||||
|
||||
# Build our application.
|
||||
RUN cargo build
|
||||
|
|
|
@ -11,10 +11,7 @@ ARG BASE_IMAGE=ekidd/rust-musl-builder:latest
|
|||
FROM ${BASE_IMAGE} AS builder
|
||||
|
||||
# Add our source code.
|
||||
ADD . ./
|
||||
|
||||
# Fix permissions on source code.
|
||||
RUN sudo chown -R rust:rust /home/rust
|
||||
ADD --chown=rust:rust . ./
|
||||
|
||||
# Build our application.
|
||||
RUN cargo build --release
|
||||
|
|
Loading…
Reference in a new issue