Plume/.circleci/images/plume-buildenv/Dockerfile

32 lines
1.3 KiB
Docker
Raw Permalink Normal View History

2023-01-03 10:05:34 +01:00
FROM rust:1
ENV PATH="/root/.cargo/bin:${PATH}"
#install native/circleci/build dependancies
RUN apt update &&\
apt install -y --no-install-recommends git ssh tar gzip ca-certificates default-jre&&\
2020-12-08 12:07:13 +01:00
echo "deb [trusted=yes] https://apt.fury.io/caddy/ /" \
| tee -a /etc/apt/sources.list.d/caddy-fury.list &&\
wget -qO - https://artifacts.crowdin.com/repo/GPG-KEY-crowdin | apt-key add - &&\
echo "deb https://artifacts.crowdin.com/repo/deb/ /" > /etc/apt/sources.list.d/crowdin.list &&\
2020-12-08 12:07:13 +01:00
apt update &&\
apt install -y --no-install-recommends binutils-dev build-essential cmake curl gcc gettext git libcurl4-openssl-dev libdw-dev libelf-dev libiberty-dev libpq-dev libsqlite3-dev libssl-dev make openssl pkg-config postgresql postgresql-contrib python zlib1g-dev python3-dev python3-pip python3-setuptools zip unzip libclang-dev clang caddy crowdin3 &&\
rm -rf /var/lib/apt/lists/*
2022-05-14 23:43:00 +02:00
#stick rust environment
COPY rust-toolchain ./
2023-01-03 10:05:34 +01:00
RUN rustup component add rustfmt clippy
2022-05-14 23:43:00 +02:00
#compile some deps
RUN cargo install wasm-pack &&\
cargo install grcov &&\
rm -fr ~/.cargo/registry
#set some compilation parametters
COPY cargo_config /root/.cargo/config
#install selenium for front end tests
RUN pip3 install selenium
2020-12-08 12:07:13 +01:00
#configure caddy
COPY Caddyfile /Caddyfile