izzilis/Dockerfile

13 lines
235 B
Docker

FROM rust:latest
RUN mkdir -p /rust/izzilis/src
WORKDIR /rust/izzilis
COPY src/* ./src/
COPY bot_config.json .
COPY fediverse.toml .
COPY Cargo.* ./
RUN cargo build --release && \
cp target/release/izzilis /usr/bin/
CMD ["izzilis"]