5 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
f6db68fac6 doc: Update run cmd and credits 2026-06-09 18:50:33 +03:00
7531cdf59f oci: Create Containerfile 2026-06-09 18:43:59 +03:00
4 changed files with 29 additions and 2 deletions

5
.dockerignore Normal file
View File

@@ -0,0 +1,5 @@
target
.git
.gameplay
*.md
screenshot.png

View File

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

11
Containerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM docker.io/library/rust:1-slim AS builder
WORKDIR /src
COPY Cargo.toml Cargo.lock ./
COPY src ./src
RUN cargo build --release --bin yamlabyrinth
FROM quay.io/centos/centos:stream10-minimal
COPY --from=builder /src/target/release/yamlabyrinth /usr/local/bin/yamlabyrinth
USER nobody
WORKDIR /tmp
ENTRYPOINT ["yamlabyrinth"]

View File

@@ -13,4 +13,15 @@ There are 11 levels in the game, so if you're on level 12, you won the game!
cargo run --release
## Dependencies
## How to start (container):
docker run -it --rm quay.io/kareiva/yamlabyrinth:latest
## LLM Notice
This was a fun project to do while learning Rust syntax and pecularities. I
have mostly used Opus 4.7 with 1M context to assist me with coding.
## Author
Simonas Kareiva <skareiva@redhat.com>, <simonas@5grupe.lt>