Fix compile not working due to different folders

tool_synapse-compress-state
Ruakij 2 years ago
parent 36aa46c486
commit a760df23a7

@ -13,14 +13,20 @@ RUN apk add python3 musl-dev pkgconfig openssl-dev make
ENV RUSTFLAGS="-C target-feature=-crt-static" ENV RUSTFLAGS="-C target-feature=-crt-static"
# Copy sources # Copy sources
ADD .build/repository/ . ADD .build/repository/ .
FROM build AS build-synapse_compress-state
# Update dependencies and Compile # Update dependencies and Compile
RUN cargo update && cargo build --release RUN cargo update && cargo build --release
FROM build AS build-synapse_auto_compressor
# Update dependencies and Compile
RUN cd synapse_auto_compressor/ && cargo update && cargo build --release
# ---- Release ---- # ---- Release ----
FROM base AS release FROM base AS release
# Copy build-target ## Copy build-target
COPY --from=build /build/target/release/synapse_compress_state . COPY --from=build-synapse_compress-state /build/target/release/synapse_compress_state .
COPY --from=build /build/target/release/synapse_auto_compressor . COPY --from=build-synapse_auto_compressor /build/target/release/synapse_auto_compressor .
ENTRYPOINT ["./synapse_compress_state"] ENTRYPOINT ["./synapse_compress_state"]

Loading…
Cancel
Save