-
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.
chore(cli): mount instead of copy in Dockerfile (#334)
Signed-off-by: KeisukeYamashita <[email protected]>
- Loading branch information
1 parent
19d2940
commit 3bfffe7
Showing
2 changed files
with
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
/target | ||
### Generated by gibo (https://github.com/simonwhitaker/gibo) | ||
### https://raw.github.com/github/gitignore/4488915eec0b3a45b5c63ead28f286819c0917de/Rust.gitignore | ||
|
||
# Generated by Cargo | ||
# will have compiled files and executables | ||
debug/ | ||
target/ | ||
|
||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries | ||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html | ||
Cargo.lock | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
# MSVC Windows builds of rustc generate these, which store debugging information | ||
*.pdb | ||
|
||
# Commitlint binary | ||
commitlint | ||
|
||
# Commitlint config file | ||
.commitlintrc.* |
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 |
---|---|---|
|
@@ -3,8 +3,8 @@ WORKDIR /app | |
|
||
RUN apk update \ | ||
&& apk add --no-cache musl-dev | ||
COPY . . | ||
RUN cargo install --path . | ||
|
||
RUN --mount=type=bind,target=. cargo install --path . | ||
|
||
FROM alpine | ||
LABEL maintainer="KeisukeYamashita <[email protected]>" | ||
|