forgejo-todo-checker/Dockerfile
Paul Campbell 1dbfd9fb7b
All checks were successful
Test / test (push) Successful in 3s
feat: use Dockerfile (hello world)
Given I want to implement the core login in Rust, I don't want to have a
rust compile step for each invocation. So use a Dockerfile and it will
be built and cached by each Fogejo Runner.
2024-09-17 16:37:40 +01:00

8 lines
200 B
Docker

FROM docker.io/rust:1.81.0-bookworm
WORKDIR /app
COPY Cargo.toml ./
COPY src/ ./src/
RUN cargo build --release && mv target/release/forgejo-todo-checker .
ENTRYPOINT [ "/app/forgejo-todo-checker" ]