Files
Lee Smet d620b476ef Update Dockerfile to use rust base image
Since debian doesn't ship rustc >= 1.85 yet

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2026-04-21 15:36:06 +02:00

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