File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
1914FROM debian:bookworm-slim
@@ -34,10 +29,10 @@ ENV LANG=C.UTF-8
3429ENV 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
4035COPY --from=builder /app/static ./static
4136COPY --from=builder /app/js ./js
4237
43- ENTRYPOINT ["restsend" ]
38+ ENTRYPOINT ["restsend-backend " ]
You can’t perform that action at this time.
0 commit comments