forked from joonas-fi/cc-tool-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (24 loc) · 1016 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ubuntu AS builder
RUN apt update \
&& DEBIAN_FRONTEND=noninteractive apt install -y git build-essential gcc libusb-1.0-0-dev libglib2.0-dev libboost-all-dev autoconf libtool
RUN git clone https://github.com/dashesy/cc-tool.git
RUN cd /cc-tool \
&& ./bootstrap \
&& ./configure \
&& make
FROM ubuntu
WORKDIR /workspace
ENTRYPOINT ["/bin/cc-tool"]
CMD ["--help"]
# we wouldn't need this if we used the builder image directly, but maybe this is better than shipping
# the build toolchain.. we could also just install libboost-all-dev but that seems to install compilers etc.
COPY --from=builder [ \
"/usr/lib/*-linux-gnu/libboost_regex.so.*", \
"/usr/lib/*-linux-gnu/libboost_filesystem.so.*", \
"/usr/lib/*-linux-gnu/libboost_program_options.so.*", \
"/usr/lib/*-linux-gnu/libicui18n.so.*", \
"/usr/lib/*-linux-gnu/libicuuc.so.*", \
"/usr/lib/*-linux-gnu/libicudata.so.*", \
"/usr/lib/*-linux-gnu/libusb-1.0.so.*", \
"/usr/lib/*-linux-gnu/"]
COPY --from=builder /cc-tool/cc-tool /bin/cc-tool