3 Commits

Author SHA1 Message Date
ca6fca760d oci: Use Centos Stream rolling image 2026-06-09 19:45:17 +03:00
669260ba98 oci: Use UBI10 image 2026-06-09 19:26:00 +03:00
62e727734a build: Change target name 2026-06-09 19:25:30 +03:00
2 changed files with 7 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[[bin]] [[bin]]
name = "go" name = "yamlabyrinth"
path = "src/bin/go.rs" path = "src/bin/go.rs"
[lib] [lib]

View File

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