Skip to content

Commit

Permalink
Only build ndc-postgres binary in Docker (#213)
Browse files Browse the repository at this point in the history
<!-- The PR description should answer 2 (maybe 3) important questions:
-->

### What

Dockerfile is building too much stuff it doesn't need.

### How

Only build the `ndc-postgres` binary.
  • Loading branch information
danieljharvey authored Aug 30, 2023
1 parent e58cd46 commit 550c26d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ConfigServer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ENV RUSTFLAGS="-C link-arg=-fuse-ld=lld"

COPY . .

RUN cargo build --release --all-targets
RUN cargo build --release --bin ndc-postgres

## Copy the binaries and serve the configuration server
FROM debian:buster-slim as ndc-postgres
Expand Down

0 comments on commit 550c26d

Please sign in to comment.