File tree Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 1
1
ARG prebuilder = quay . io /wire /ubuntu20 -prebuilder
2
2
3
+ FROM rust :1.63 as mls -test -cli -builder
4
+
5
+ # compile mls-test-cli tool
6
+ RUN cd /tmp && \
7
+ git clone https:/ /github . com /wireapp /mls -test -cli
8
+
9
+ RUN cd /tmp/mls -test -cli && RUSTFLAGS = '-C target-feature=+crt-static' cargo install --bins --target x86_64 -unknown -linux -gnu --path .
10
+
3
11
FROM ${ prebuilder }
12
+
13
+ COPY --from = mls -test -cli -builder /usr /local /cargo /bin /mls -test -cli /usr /bin /mls -test -cli
14
+
4
15
WORKDIR /
5
16
6
17
# Download stack indices and compile/cache dependencies to speed up subsequent
Original file line number Diff line number Diff line change 1
- FROM rust:1.63 as mls-test-cli-builder
2
-
3
- # compile mls-test-cli tool
4
- RUN cd /tmp && \
5
- git clone https://github.com/wireapp/mls-test-cli && \
6
- cd mls-test-cli && \
7
- cargo build --release
8
-
9
-
10
1
FROM ubuntu:20.04 as cryptobox-builder
11
2
12
3
# compile cryptobox-c
@@ -25,10 +16,6 @@ FROM ubuntu:20.04
25
16
26
17
COPY --from=cryptobox-builder /tmp/cryptobox-c/target/release/libcryptobox.so /usr/lib
27
18
28
- # FUTUREWORK: only copy mls-test-cli executables if we are building an
29
- # integration test image
30
- COPY --from=mls-test-cli-builder /tmp/mls-test-cli/target/release/mls-test-cli /usr/bin
31
-
32
19
RUN export DEBIAN_FRONTEND=noninteractive && \
33
20
apt-get update && \
34
21
apt-get install -y \
You can’t perform that action at this time.
0 commit comments