Skip to content

Commit 3bfffe7

Browse files
chore(cli): mount instead of copy in Dockerfile (#334)
Signed-off-by: KeisukeYamashita <[email protected]>
1 parent 19d2940 commit 3bfffe7

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.gitignore

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
1-
/target
1+
### Generated by gibo (https://github.com/simonwhitaker/gibo)
2+
### https://raw.github.com/github/gitignore/4488915eec0b3a45b5c63ead28f286819c0917de/Rust.gitignore
3+
4+
# Generated by Cargo
5+
# will have compiled files and executables
6+
debug/
7+
target/
8+
9+
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
10+
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
11+
Cargo.lock
12+
13+
# These are backup files generated by rustfmt
14+
**/*.rs.bk
15+
16+
# MSVC Windows builds of rustc generate these, which store debugging information
17+
*.pdb
18+
19+
# Commitlint binary
20+
commitlint
21+
22+
# Commitlint config file
223
.commitlintrc.*

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ WORKDIR /app
33

44
RUN apk update \
55
&& apk add --no-cache musl-dev
6-
COPY . .
7-
RUN cargo install --path .
6+
7+
RUN --mount=type=bind,target=. cargo install --path .
88

99
FROM alpine
1010
LABEL maintainer="KeisukeYamashita <[email protected]>"

0 commit comments

Comments
 (0)