forked from FeatureProbe/FeatureProbe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (19 loc) · 736 Bytes
/
Copy pathDockerfile
File metadata and controls
22 lines (19 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM rust:1.64.0 as build
RUN rustup target add x86_64-unknown-linux-musl
RUN apt update && apt install -y musl-tools musl-dev build-essential
RUN update-ca-certificates
WORKDIR /app
COPY . /app
WORKDIR /app/server
RUN rustc -V
RUN cargo build --release --verbose
FROM debian:buster-slim
RUN apt-get update && \
apt-get install -y openjdk-11-jre-headless curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY ./scripts/start.sh /usr/local/bin/start.sh
COPY --from=build /app/server/target/release/feature_probe_server /usr/local/bin/feature_probe_server
COPY ./api/admin/target/api.jar /usr/local/bin/api.jar
COPY ./analysis/target/analysis.jar /usr/local/bin/analysis.jar
ENTRYPOINT ["/usr/local/bin/start.sh"]