Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

588 B
Raw Blame
FROM rust:latest AS builder

WORKDIR /app

# enable sqlx offline mode
# ensure you have run make prepare_db BEFORE building the image
ENV SQLX_OFFLINE=true

COPY ./Cargo.lock Cargo.lock
COPY ./Cargo.toml Cargo.toml
COPY . .

RUN --mount=type=cache,id=cargo_build,target=/usr/local/cargo/registry cargo build --release --bin sha_cleanup_worker

FROM debian:bookworm-slim AS runner

# Install ssl certs so we can connect to the DB with ssl true
RUN apt-get update && apt install -y ca-certificates

COPY --from=builder /app/target/release/sha_cleanup_worker .

CMD ["./sha_cleanup_worker"]