-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
42 lines (37 loc) · 1 KB
/
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
34
35
36
37
38
39
40
41
42
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ARG DEBUG
RUN apt-get update \
&& apt-get install -y \
aoflagger-dev \
build-essential \
clang \
curl \
git \
jq \
lcov \
libcfitsio-dev \
liberfa-dev \
libssl-dev \
pkg-config \
unzip \
wget \
zip
RUN test -z "$DEBUG" || ( \
apt-get install -y vim gdb \
)
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Get Rust
RUN mkdir -m755 /opt/rust /opt/cargo
ENV RUSTUP_HOME=/opt/rust CARGO_HOME=/opt/cargo PATH=/opt/cargo/bin:$PATH
# set minimal rust version here to use a newer stable version
ENV RUST_VERSION=1.67
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=$RUST_VERSION
# install latest stable rust toolchian, with llvm-tools-preview (for coverage)
RUN rustup toolchain install $RUST_VERSION --component llvm-tools-preview
# Get cargo make, llvm-cov
RUN /opt/cargo/bin/cargo install --force cargo-make cargo-llvm-cov
ADD . /app
WORKDIR /app
ENTRYPOINT [ "/bin/bash" ]