Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Use a multi-stage Dockerfile #67

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions Dockerfile
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"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ debugging, set `RUST_LOG=trace`.
To build the linkerd/linkerd-tcp docker image, run:

```bash
./dockerize latest
docker build -t linkerd/linkerd-tcp:latest .
```

Replace `latest` with the version that you want to build.
Expand Down
13 changes: 0 additions & 13 deletions dockerize

This file was deleted.