oci: Use UBI10 image

This commit is contained in:
2026-06-09 19:26:00 +03:00
parent 62e727734a
commit 669260ba98

View File

@@ -2,11 +2,10 @@ FROM docker.io/library/rust:1-slim AS builder
WORKDIR /src
COPY Cargo.toml Cargo.lock ./
COPY src ./src
RUN cargo build --release --bin go
RUN cargo build --release --bin yamlabyrinth
FROM docker.io/library/debian:stable-slim
RUN useradd --create-home --shell /bin/bash player
COPY --from=builder /src/target/release/go /usr/local/bin/go
USER player
WORKDIR /home/player
ENTRYPOINT ["go"]
FROM registry.access.redhat.com/ubi10/ubi-minimal
COPY --from=builder /src/target/release/yamlabyrinth /usr/local/bin/yamlabyrinth
USER nobody
WORKDIR /tmp
ENTRYPOINT ["yamlabyrinth"]