Skip to content

Commit

Permalink
chore(cli): mount instead of copy in Dockerfile (#334)
Browse files Browse the repository at this point in the history
Signed-off-by: KeisukeYamashita <[email protected]>
  • Loading branch information
KeisukeYamashita authored Jul 26, 2024
1 parent 19d2940 commit 3bfffe7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
23 changes: 22 additions & 1 deletion .gitignore
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.*
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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]>"
Expand Down

0 comments on commit 3bfffe7

Please sign in to comment.