13 lines
445 B
Docker
13 lines
445 B
Docker
# # syntax=docker/dockerfile:1
|
|
FROM rust:latest as builder
|
|
WORKDIR /usr/src/matrix-modbot
|
|
COPY . .
|
|
RUN cargo build --release
|
|
RUN cargo install --path .
|
|
|
|
FROM debian:stable-slim
|
|
COPY --from=builder /usr/local/cargo/bin/matrix-modbot /usr/local/bin/matrix-modbot
|
|
RUN touch config.ini
|
|
CMD ["matrix-modbot", "config.ini"]
|
|
HEALTHCHECK --interval=30s --timeout=30s --start-period=30s --retries=3 CMD curl --fail http://localhost:5000/health || exit 1
|