10
0
Fork 0
mirror of https://github.com/ZeusWPI/ZNS.git synced 2024-10-30 13:34:26 +01:00
zns/Dockerfile

20 lines
496 B
Text
Raw Normal View History

2024-08-22 17:05:27 +02:00
FROM docker.io/rust:latest AS builder
WORKDIR /zns
RUN cargo install diesel_cli --no-default-features --features postgres
COPY . .
RUN cargo install --locked --path zns-daemon
FROM docker.io/debian:bookworm-slim
WORKDIR /zns
COPY --from=builder /usr/local/cargo/bin/diesel /usr/local/cargo/bin/zns-daemon /usr/local/bin
COPY zns-daemon/diesel.toml .
COPY zns-daemon/migrations/ migrations/
RUN apt update && apt install libpq5 ca-certificates --yes
CMD diesel migration run && zns-daemon