-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (16 loc) · 894 Bytes
/
Dockerfile
File metadata and controls
23 lines (16 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y build-essential git curl cmake clang libclang-dev \
llvm llvm-dev python3-dev python3-numpy libgtk2.0-dev pkg-config libavcodec-dev \
libavformat-dev libswscale-dev libtbb2 libtbb-dev libcanberra-gtk-module \
libcanberra-gtk3-module libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev libopencv-dev
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
sh -s -- --default-toolchain 1.71.0 -y && \
ln -s $HOME/.cargo/bin/* /usr/bin/
RUN rustup default nightly-unknown-linux-gnu
COPY . /home/user/cvlcore
WORKDIR /home/user/cvlcore
RUN cargo build --verbose --release --all-targets --jobs $(nproc)
RUN cargo doc --verbose && mv target/doc target/release/
RUN tar -zcvf cvlcore.tar.gz target/release/*
ENTRYPOINT [ "/bin/bash", "-l", "-c" ]