-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring dockerfile, adding one specific for just build and updati…
…ng README to reflect chnages
- Loading branch information
Showing
3 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM rust as builder | ||
|
||
WORKDIR /opt/bin2ml | ||
|
||
RUN env USER=root cargo init . | ||
|
||
COPY Cargo.toml . | ||
COPY src /opt/bin2ml/src | ||
|
||
RUN cd /opt/bin2ml && \ | ||
cargo install --locked --path . && \ | ||
rm -rf /opt/bin2ml && \ | ||
rm -rf /usr/local/cargo/registry | ||
|
||
FROM rust | ||
|
||
COPY --from=builder /usr/local/cargo/bin/bin2ml /usr/local/cargo/bin/bin2ml | ||
|
||
CMD bin2ml --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters