-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (29 loc) · 749 Bytes
/
Dockerfile
File metadata and controls
41 lines (29 loc) · 749 Bytes
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
FROM arm64v8/ubuntu:latest
# Update default packages
RUN apt-get update
# Get Ubuntu packages
RUN apt-get install -y \
build-essential \
curl \
bash \
zip \
git \
libfl-dev \
clang \
coinor-cbc \
coinor-libcbc-dev
# Get Rust
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
# Update new packages
RUN apt-get update
ENV PATH="/root/.cargo/bin:${PATH}"
#Get Protobuf
RUN curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v24.2/protoc-24.2-linux-x86_64.zip
RUN unzip protoc-24.2-linux-x86_64.zip -d /usr/local/protoc
ENV PATH=$PATH:/usr/local/protoc/bin
RUN protoc --version
# Copy the remaining files
COPY . .
# Build mantis
RUN cargo build --bin mantis
ENTRYPOINT ["/bin/bash"]