mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-26 07:38:36 -06:00
Don't include resources during build for better caching
This commit is contained in:
parent
abe8238713
commit
e14fc1f3b5
1 changed files with 1 additions and 2 deletions
|
@ -10,7 +10,6 @@ COPY ./actix/Cargo.lock .
|
||||||
RUN cargo build-deps --release
|
RUN cargo build-deps --release
|
||||||
|
|
||||||
COPY ./actix/src ./src
|
COPY ./actix/src ./src
|
||||||
COPY ./actix/resources ./resources
|
|
||||||
|
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
|
|
||||||
|
@ -21,6 +20,6 @@ RUN apk add sqlite-libs
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
|
|
||||||
COPY --from=build /simply-shorten/target/release/simply-shorten /opt/simply-shorten
|
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"]
|
CMD ["./simply-shorten"]
|
||||||
|
|
Loading…
Reference in a new issue