-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a229b7
commit 8866631
Showing
6 changed files
with
50 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.github/ | ||
.ci/ | ||
cross/ | ||
target/ | ||
.dockerignore | ||
.editorconfig | ||
.gitignore | ||
.rustfmt | ||
.tool-versions | ||
Cross.toml | ||
Dockerfile | ||
README.md |
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,29 @@ | ||
FROM clux/muslrust:1.53.0 as cargo-build | ||
|
||
RUN apt-get -y update && apt-get -y install libdbus-1-dev | ||
|
||
WORKDIR /usr/src/app | ||
COPY Cargo.lock . | ||
COPY Cargo.toml . | ||
#RUN mkdir .cargo src | ||
#RUN touch ./src/main.rs | ||
#RUN --mount=type=cache,target=vendor \ | ||
# cargo vendor > .cargo/config | ||
|
||
COPY ./src src | ||
RUN --mount=type=cache,target=/root/.cargo/registry \ | ||
--mount=type=cache,target=target/release/build \ | ||
--mount=type=cache,target=target/release/deps \ | ||
cargo build --release | ||
#RUN cargo install --path . --verbose | ||
#RUN --mount=type=cache,target=/root/.cargo/registry \ | ||
# --mount=type=cache,target=target/release/build \ | ||
# --mount=type=cache,target=target/release/deps \ | ||
# cargo run --release -- --version | ||
#RUN target/x86_64-unknown-linux-musl/release/oktaws --version | ||
|
||
FROM alpine | ||
# Copy the compiled binary from the builder container | ||
COPY --from=cargo-build /root/.cargo/bin/oktaws /oktaws | ||
# Pass all arguments etc to binary | ||
ENTRYPOINT [ "/oktaws" ] |
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#[cfg(windows)] | ||
extern crate rpassword; | ||
|
||
#[macro_use] | ||
extern crate failure; | ||
#[macro_use] | ||
|
File renamed without changes.