rooster/Dockerfile

19 lines
346 B
Docker
Raw Permalink Normal View History

2022-11-18 10:03:21 +00:00
FROM rust:1 AS builder
WORKDIR /usr/src/rooster
2023-01-02 18:07:31 +00:00
COPY Cargo.toml Cargo.lock ./
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
2023-01-02 18:07:31 +00:00
RUN apt-get update && apt-get install -y openssl
COPY Rocket.toml ./
2022-11-18 10:03:21 +00:00
COPY --from=builder /usr/local/cargo/bin/rooster /usr/local/bin/rooster
CMD ["rooster"]