Fix caching issue

This commit is contained in:
Valentin Brandl 2019-08-09 14:26:51 +02:00
parent ffb47656f2
commit 048069760f
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

View File

@ -29,13 +29,11 @@ WORKDIR /home/rust/src/gitache
RUN cargo build --release RUN cargo build --release
# delete build cache to prevent caching issues later on # delete build cache to prevent caching issues later on
RUN rm -r ./target/x86_64-unknown-linux-musl/release/.fingerprint/gitache-* RUN rm -r ./target/x86_64-unknown-linux-musl/release/.fingerprint/gitache-*
RUN rm -r ../target/x86_64-unknown-linux-musl/release/.fingerprint/time_cache-*
COPY ./backend/static ./static COPY ./backend/static ./static
COPY ./backend/src ./src COPY ./backend/src ./src
COPY ./time-cache/src /home/rust/src/time-cache/src COPY ./time-cache/src ../time-cache/src
RUN ls /home/rust/src
RUN ls /home/rust/src/time-cache/src
RUN cat /home/rust/src/time-cache/src/lib.rs
# build source code # build source code
RUN cargo build --release RUN cargo build --release