Compare commits
2 Commits
fabfbc52fd
...
f6db68fac6
| Author | SHA1 | Date | |
|---|---|---|---|
| f6db68fac6 | |||
| 7531cdf59f |
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
target
|
||||||
|
.git
|
||||||
|
.gameplay
|
||||||
|
*.md
|
||||||
|
screenshot.png
|
||||||
12
Containerfile
Normal file
12
Containerfile
Normal 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"]
|
||||||
13
README.md
13
README.md
@@ -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
|
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>
|
||||||
|
|||||||
Reference in New Issue
Block a user