-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (15 loc) · 731 Bytes
/
Dockerfile
File metadata and controls
29 lines (15 loc) · 731 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
FROM rust:latest as builder
WORKDIR /usr/src/heimdall-api
COPY ./ .
RUN cargo build --release
FROM ubuntu:latest
RUN apt-get update && apt-get install -y libssl-dev pkg-config ca-certificates curl git cargo && rm -rf /var/lib/apt/lists/*
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
RUN curl -L http://get.heimdall.rs | bash 2>&1 | tee bifrost-install.log
RUN find / -name bifrost -type f 2>/dev/null
RUN /root/.bifrost/bin/bifrost -B 2>&1 | tee heimdall-install.log || echo "Bifrost execution failed"
RUN cat bifrost-install.log && cat heimdall-install.log
RUN which heimdall || echo "Heimdall not found"
COPY --from=builder /usr/src/heimdall-api/target/release/heimdall_api .
EXPOSE 8080
CMD ["./heimdall_api"]