Skip to content

Commit ecfca09

Browse files
committed
fix: update Dockerfile to streamline build process and correct binary references[latest]
1 parent b34fb4f commit ecfca09

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

Dockerfile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,9 @@ RUN apt-get update && apt-get install -y \
66
pkg-config \
77
&& rm -rf /var/lib/apt/lists/*
88

9-
# Copy source
10-
COPY Cargo.toml ./
11-
COPY src ./src
12-
COPY static ./static
13-
COPY js ./js
14-
9+
ADD . .
1510
# Build release binary
16-
RUN cargo build --release
11+
RUN cargo build --release -p restsend-backend
1712

1813
# Runtime stage
1914
FROM debian:bookworm-slim
@@ -34,10 +29,10 @@ ENV LANG=C.UTF-8
3429
ENV TZ=UTC
3530

3631
# Copy binary from builder
37-
COPY --from=builder /app/target/release/restsend /usr/local/bin/restsend
32+
COPY --from=builder /app/target/release/restsend-backend /usr/local/bin/restsend-backend
3833

3934
# Copy static files
4035
COPY --from=builder /app/static ./static
4136
COPY --from=builder /app/js ./js
4237

43-
ENTRYPOINT ["restsend"]
38+
ENTRYPOINT ["restsend-backend"]

0 commit comments

Comments
 (0)