Skip to content

Commit f346d54

Browse files
authored
Ensure build in container uses latest source (#84)
For some reason, cargo's rebuild-needed check doesn't pick up that the source has been replaced after the initial cache warm-up build.
1 parent 88647fc commit f346d54

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
@@ -19,7 +19,7 @@ RUN cargo build --release --target x86_64-unknown-linux-musl
1919
COPY ./static ./static
2020
COPY ./src ./src
2121

22-
RUN cargo build --release --target x86_64-unknown-linux-musl
22+
RUN touch src/main.rs && cargo build --release --target x86_64-unknown-linux-musl
2323

2424
ENTRYPOINT ["/build/target/x86_64-unknown-linux-musl/release/glazed"]
2525
CMD ["serve"]

0 commit comments

Comments
 (0)