2 Commits

Author SHA1 Message Date
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
3 changed files with 29 additions and 1 deletions

5
.dockerignore Normal file
View File

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

12
Containerfile Normal file
View File

@@ -0,0 +1,12 @@
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
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"]

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>