mirror of
https://github.com/threefoldtech/mycelium.git
synced 2026-05-14 03:15:08 +00:00
d620b476ef
Since debian doesn't ship rustc >= 1.85 yet Signed-off-by: Lee Smet <lee.smet@hotmail.com>
26 lines
564 B
Docker
26 lines
564 B
Docker
FROM rust:latest AS build
|
|
|
|
# Copy across data
|
|
RUN mkdir /src
|
|
COPY . /src
|
|
WORKDIR /src
|
|
|
|
# target: myceliumd - the routing daemon
|
|
FROM build AS daemonBuild
|
|
WORKDIR myceliumd/
|
|
RUN cargo build --release
|
|
RUN mv target/release/mycelium /bin/mycelium
|
|
|
|
# TODO: Add copying across of other tools like cli management etc.
|
|
# and probably build them seperately
|
|
|
|
# Clean base image to run fro
|
|
FROM debian:latest AS base
|
|
COPY --from=daemonBuild /bin/mycelium /bin/mycelium
|
|
|
|
# Entrypoint
|
|
ENTRYPOINT ["/bin/mycelium"]
|
|
|
|
# TODO: Add health-check command
|
|
# HEALTHCHECK /bin/mycelium
|