rooster/Dockerfile

17 lines
289 B
Docker
Raw Normal View History

2022-11-18 10:03:21 +00:00
FROM rust:1 AS builder
WORKDIR /usr/src/rooster
COPY Cargo.toml Cargo.lock Rocket.toml ./
2022-11-18 10:03:21 +00:00
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"]