rooster/Dockerfile
2023-01-02 18:07:31 +00:00

18 lines
346 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
RUN apt-get update && apt-get install -y openssl
COPY Rocket.toml ./
COPY --from=builder /usr/local/cargo/bin/rooster /usr/local/bin/rooster
CMD ["rooster"]