oci: Create Containerfile

This commit is contained in:
2026-06-09 18:43:59 +03:00
parent fabfbc52fd
commit 7531cdf59f
2 changed files with 17 additions and 0 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"]