[Rust] gRPC 서버 Docker 이미지 빌드 및 docker compose 네트워크 에러 해결
gRPC 서버 Docker 이미지 빌드 FROM rust:latest as builder WORKDIR /app COPY . . RUN apt update && apt install -y protobuf-compiler RUN cargo build --release --bin server FROM debian:stable-slim RUN apt update \ && apt install -y libssl-dev ca-certificates \ && apt clean \ && rm -rf /var/lib/apt/lists/* COPY --from=builder /app/target/release/server /app/server CMD ["/app/server"] multistage build를 통해 1G..
Rust/코딩 하기
2023. 12. 27. 15:05