oci: Use UBI10 image
This commit is contained in:
@@ -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 registry.access.redhat.com/ubi10/ubi-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"]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user