forked from n0-computer/beetle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-ci
31 lines (25 loc) · 1.14 KB
/
Dockerfile-ci
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
# Dockerfile for CircleCI
# build with
# `docker build -t dignifiedquire/iroh-ci:latest -f ./Dockerfile-ci .`
# rebuild: `docker build --pull --no-cache -t dignifiedquire/iroh-ci:latest -f ./Dockerfile-ci .`
FROM cimg/rust:1.62.0
# Some of the dependencies I need to build a few libraries,
# personalize to your needs. You can use multi-stage builds
# to produce a lightweight image.
RUN sudo apt-get update && \
sudo apt-get install -y \
cmake pkg-config libssl-dev git gcc build-essential git clang libclang-dev \
make curl openssh-client \
autoconf automake cmake libtool libcurl4-openssl-dev libssl-dev \
libelf-dev libdw-dev binutils-dev zlib1g-dev libiberty-dev wget \
xz-utils pkg-config python
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH "$PATH:/root/.cargo/bin"
ENV RUSTFLAGS "-C link-dead-code"
# set CROSS_DOCKER_IN_DOCKER to inform `cross` that it is executed from within a container
ENV CROSS_DOCKER_IN_DOCKER=true
# install `cross`
RUN cargo install cross
RUN sudo bash -l -c 'echo $(rustc --print sysroot)/lib >> /etc/ld.so.conf'
RUN sudo bash -l -c 'echo /usr/local/lib >> /etc/ld.so.conf'
RUN sudo ldconfig