-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (24 loc) · 893 Bytes
/
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
FROM registry.gitlab.hpi.de/akita/i/rust-base:latest as build
# install requirements
RUN set -eux; \
apt-get update; \
apt-get upgrade -y; \
apt-get install build-essential gfortran libopenblas-base libopenblas-dev gcc -y; \
apt-get clean; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY ./src /app/src
COPY ./Cargo.toml /app/Cargo.toml
# build source code to executable
RUN cargo build --release --package s2gpp --bin s2gpp
FROM registry.gitlab.hpi.de/akita/i/rust-base:latest
LABEL maintainer="[email protected]"
RUN set -eux; \
apt-get update; \
apt-get upgrade -y; \
apt-get install jq gfortran -y; \
apt-get clean; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY --from=build /app/target/release/s2gpp /app/s2gpp
COPY ./scripts/start_timeeval.sh /app/start_timeeval.sh
EXPOSE 8000
ENV ALGORITHM_MAIN="/app/start_timeeval.sh"