Skip to content

Commit

Permalink
update dockerfile to use github and use slimmer image
Browse files Browse the repository at this point in the history
  • Loading branch information
niteshbalusu11 committed Jan 6, 2025
1 parent ddc0f91 commit 689c161
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit 689c161

Please sign in to comment.