rooster/Dockerfile
2022-11-18 10:03:21 +00:00

16 lines
277 B
Docker

FROM rust:1 AS builder
WORKDIR /usr/src/rooster
COPY Cargo.toml Cargo.lock ./
COPY src ./src
RUN cargo install --path .
FROM debian:buster-slim
ENV ROCKET_ADDRESS=0.0.0.0
EXPOSE 8000
COPY --from=builder /usr/local/cargo/bin/rooster /usr/local/bin/rooster
CMD ["rooster"]