File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 11FROM docker.io/library/rust:1.84-alpine AS builder
22
3- ARG BIN=pulsebeam-server-lite
43RUN apk add make protobuf-dev musl-dev
54WORKDIR /app
65
@@ -12,14 +11,12 @@ RUN --mount=type=cache,target=/app/target/ \
1211 --mount=type=cache,target=/usr/local/cargo/registry/ \
1312 --mount=type=cache,target=/root/.cargo/git \
1413 --mount=type=cache,target=/root/.cargo/registry \
15- cargo build --release && \
16- # Copy executable out of the cache so it is available in the final image.
17- cp target/release/${BIN} ./${BIN}
14+ cargo build --release
1815
1916FROM docker.io/library/alpine:3
2017
2118WORKDIR /app
22- COPY --from=builder /app/${BIN} .
19+ COPY --from=builder /app/target/release/pulsebeam-server-lite .
2320
2421ENTRYPOINT ["./server-rs" ]
2522
You can’t perform that action at this time.
0 commit comments