From 689c161b0491a7875077d737ce5554b84111d658 Mon Sep 17 00:00:00 2001 From: Nitesh Balusu Date: Mon, 6 Jan 2025 14:36:46 -0500 Subject: [PATCH] update dockerfile to use github and use slimmer image --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3d1380a..d3f93bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,19 +2,19 @@ FROM rust:1.81 AS builder # Install protobuf compiler -RUN apt-get update && apt-get install -y protobuf-compiler +RUN apt-get update && apt-get install -y protobuf-compiler git # Create a new directory for the application WORKDIR /app -# Copy the entire project -COPY . . +# Clone the repository instead of copying local files +RUN git clone https://github.com/lndk-org/lndk . # Build dependencies and the project RUN cargo build --release # Create a new stage with a minimal image -FROM ubuntu:22.04 AS final +FROM debian:bookworm-slim AS final # Install necessary runtime dependencies RUN apt-get update && \