File tree Expand file tree Collapse file tree 1 file changed +22
-11
lines changed Expand file tree Collapse file tree 1 file changed +22
-11
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 /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
@@ -9,14 +20,14 @@ WORKDIR /
9
20
# We build docs for haskell-src-exts without hyperlinking enabled to avoid
10
21
# a Haddock segfault. See https://github.com/haskell/haddock/issues/928
11
22
12
- ARG wire_server_branch = develop
13
- ARG THREADS = 4
14
- RUN set -x && \
15
- echo ${ wire_server_branch } && \
16
- git clone -b ${ wire_server_branch } https :/ /github . com /wireapp /wire -server . git && \
17
- cd /wire -server && \
18
- cabal update && \
19
- cabal build all --dependencies -only && \
20
- cd / && \
21
- # we run the build only to cache the built source in /root/.cabal, we can remove the source code itself
22
- rm -rf /wire -server
23
+ # ARG wire_server_branch=develop
24
+ # ARG THREADS=4
25
+ # RUN set -x && \
26
+ # echo ${wire_server_branch} && \
27
+ # git clone -b ${wire_server_branch} https://github.com/wireapp/wire-server.git && \
28
+ # cd /wire-server && \
29
+ # cabal update && \
30
+ # cabal build all --dependencies-only && \
31
+ # cd / && \
32
+ # # we run the build only to cache the built source in /root/.cabal, we can remove the source code itself
33
+ # rm -rf /wire-server
You can’t perform that action at this time.
0 commit comments