Skip to content

Commit a6e27d1

Browse files
committed
Only touch *.rs under src
To avoid having to rebuild dependencies (and thus also all their dependents) with generated `.rs` files, we have to avoid touching `.rs` files under `target`.
1 parent b98bb2a commit a6e27d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ RUN cargo build --release
3838
RUN rm -rf /tmp/source/src
3939
COPY src /tmp/source/src
4040
COPY migrations /tmp/source/migrations
41-
RUN find -name "*.rs" -exec touch {} \; && cargo build --release
41+
RUN find src -name "*.rs" -exec touch {} \; && cargo build --release
4242

4343
##################
4444
# Output image #

0 commit comments

Comments
 (0)