geni 1.0.7

A standalone database CLI migration tool
Documentation
FROM rust:1.75.0 as builder
WORKDIR /usr/src/app
COPY . .

RUN cargo build --release

RUN cp target/release/geni /usr/src/app/geni

FROM gcr.io/distroless/cc-debian12

COPY --from=builder /usr/src/app/geni /usr/src/app/geni

ENV DATABASE_MIGRATIONS_FOLDER="/migrations"
ENV DATABASE_NO_DUMP_SCHEMA="true"

LABEL org.opencontainers.image.description "Geni: Standalone database migration tool which works for Postgres, MariaDB, MySQL, Sqlite and LibSQL(Turso)."

WORKDIR /usr/src/app

ENTRYPOINT ["./geni"]