FROM clux/muslrust:stable as builder WORKDIR /volume COPY ./Cargo.toml ./Cargo.toml COPY ./Cargo.lock ./Cargo.lock COPY ./src ./src RUN cargo build --release FROM alpine:latest COPY --from=builder /volume/target/x86_64-unknown-linux-musl/release/hass-wol /app/hass-wol VOLUME /data CMD ["/app/hass-wol", "/config.toml", "/data"] # Should probably change to this # ENTRYPOINT ["/app/hass-wol"] # CMD ["/config.toml", "/data"]