From e14fc1f3b5eb2a3e871f4bce4c3d61df97fcd43d Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Tue, 11 Apr 2023 19:17:42 -0500 Subject: [PATCH] Don't include resources during build for better caching --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0b91a55..0fb7108 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,6 @@ COPY ./actix/Cargo.lock . RUN cargo build-deps --release COPY ./actix/src ./src -COPY ./actix/resources ./resources RUN cargo build --release @@ -21,6 +20,6 @@ RUN apk add sqlite-libs WORKDIR /opt COPY --from=build /simply-shorten/target/release/simply-shorten /opt/simply-shorten -COPY --from=build /simply-shorten/resources /opt/resources +COPY ./actix/resources /opt/resources CMD ["./simply-shorten"]