File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
21
21
libssl-dev \
22
22
pkg-config
23
23
24
- RUN curl -o /usr/local/bin/sccache \
25
- https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-05-12-sccache-x86_64-unknown-linux-musl && \
26
- chmod +x /usr/local/bin/sccache
27
-
28
- RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
29
- dpkg -i dumb-init_*.deb && \
30
- rm dumb-init_*.deb
31
- ENTRYPOINT ["/usr/bin/dumb-init" , "--" ]
24
+ # dumb-init
25
+ COPY scripts/dumb-init.sh /scripts/
26
+ RUN sh /scripts/dumb-init.sh
32
27
33
28
WORKDIR /tmp
34
29
@@ -80,3 +75,10 @@ ENV RUST_CONFIGURE_ARGS \
80
75
--musl-root-armhf=/usr/local/arm-linux-musleabihf \
81
76
--musl-root-armv7=/usr/local/armv7-linux-musleabihf
82
77
ENV SCRIPT python2.7 ../x.py dist --target $TARGETS
78
+
79
+ # sccache
80
+ COPY scripts/sccache.sh /scripts/
81
+ RUN sh /scripts/sccache.sh
82
+
83
+ # init
84
+ ENTRYPOINT ["/usr/bin/dumb-init" , "--" ]
You can’t perform that action at this time.
0 commit comments