Skip to content

Commit 3145499

Browse files
committed
fix: missing BIN arg
1 parent 2c22e5c commit 3145499

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
FROM docker.io/library/rust:1.84-alpine AS builder
22

3-
ARG BIN=pulsebeam-server-lite
43
RUN apk add make protobuf-dev musl-dev
54
WORKDIR /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

1916
FROM docker.io/library/alpine:3
2017

2118
WORKDIR /app
22-
COPY --from=builder /app/${BIN} .
19+
COPY --from=builder /app/target/release/pulsebeam-server-lite .
2320

2421
ENTRYPOINT ["./server-rs"]
2522

0 commit comments

Comments
 (0)