Self-hosted fleet management platform for Linux
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: dockerfile

+27
+27
Dockerfile
··· 1 + FROM rust:1.95.0 AS builder 2 + WORKDIR /app 3 + ARG SLIM="false" 4 + 5 + COPY Cargo.toml Cargo.lock ./ 6 + 7 + COPY crates/api ./crates/api 8 + COPY crates/core ./crates/core 9 + COPY crates/database ./crates/database 10 + COPY crates/server ./crates/server 11 + 12 + RUN --mount=type=cache,target=/usr/local/cargo/registry \ 13 + --mount=type=cache,target=/app/target \ 14 + if [ "$SLIM" = "true" ]; then \ 15 + cargo build --release -p lucid-server --no-default-features; \ 16 + else \ 17 + cargo build --release -p lucid-server; \ 18 + fi && \ 19 + cp target/release/lucidd /tmp/lucidd 20 + 21 + FROM registry.access.redhat.com/ubi9/ubi-micro:9.7 22 + 23 + COPY --from=builder /tmp/lucidd /usr/local/bin/lucidd 24 + ENV LUCID_SERVER_HOST=0.0.0.0 25 + ENV LUCID_SERVER_PORT=8080 26 + EXPOSE 8080 27 + CMD ["lucidd"]