This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, we needed a script to build a minimal docker image without build dependency. Docker's new multi-stage builds allow us to specify all of this logic in the Dockerfile, eliminating the need for the _dockerize_ script. Fixes #43
- Loading branch information
Showing
3 changed files
with
9 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
FROM debian:jessie-slim | ||
|
||
COPY ./target/x86_64-unknown-linux-gnu/release/linkerd-tcp /usr/local/bin/ | ||
FROM linkerd/rustup-nightly:v1 | ||
RUN rustup update nightly | ||
RUN mkdir -p /linkerd-tcp | ||
COPY . /linkerd-tcp | ||
WORKDIR /linkerd-tcp | ||
RUN cargo build --release | ||
|
||
FROM debian:jessie-slim | ||
COPY --from=0 /linkerd-tcp/target/x86_64-unknown-linux-gnu/release/linkerd-tcp /usr/local/bin/ | ||
ENTRYPOINT ["/usr/local/bin/linkerd-tcp"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters