2023-06-10 22:46:52 -05:00
|
|
|
# builder
|
2023-10-13 22:41:46 -05:00
|
|
|
FROM rust:1.73 as builder
|
2023-06-10 00:07:03 -05:00
|
|
|
|
|
|
|
WORKDIR /usr/src/breeze
|
|
|
|
COPY . .
|
2023-06-10 22:46:52 -05:00
|
|
|
RUN cargo install --path .
|
2023-06-10 00:07:03 -05:00
|
|
|
|
2023-06-10 22:46:52 -05:00
|
|
|
# runner
|
2023-06-10 00:07:03 -05:00
|
|
|
FROM debian:bullseye-slim
|
2023-06-10 22:46:52 -05:00
|
|
|
|
|
|
|
RUN apt-get update && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2023-06-10 00:07:03 -05:00
|
|
|
COPY --from=builder /usr/local/cargo/bin/breeze /usr/local/bin/breeze
|
|
|
|
|
2023-06-10 22:46:52 -05:00
|
|
|
RUN useradd -m runner
|
|
|
|
USER runner
|
|
|
|
|
|
|
|
EXPOSE 8000
|
2023-06-10 00:07:03 -05:00
|
|
|
CMD [ "breeze" ]
|