mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-12-27 22:23:48 +01:00
fd7fec2cbe
This reverts commit ab3ac8f730
.
25 lines
931 B
Docker
25 lines
931 B
Docker
# Setup build image for multistage build
|
|
FROM rust:latest as builder
|
|
# install build deps
|
|
RUN apt-get update && apt-get upgrade -y
|
|
RUN apt-get install -yqq --no-install-recommends capnproto build-essential cmake clang libclang-dev libgsasl7-dev
|
|
|
|
WORKDIR /usr/src/bffh
|
|
COPY . .
|
|
RUN cargo install --path .
|
|
|
|
|
|
# Setup deployable image
|
|
FROM debian:buster-slim
|
|
# Install runtime deps
|
|
RUN apt-get update && apt-get upgrade -yqq
|
|
RUN apt-get install -yqq libgsasl7 && rm -rf /var/lib/apt/lists/*
|
|
COPY --from=builder /usr/local/cargo/bin/diflouroborane /usr/local/bin/diflouroborane
|
|
#COPY --from=builder /usr/src/bffh/examples/bffh.dhall /etc/diflouroborane.dhall
|
|
# RUN diflouroborane --print-default > /etc/diflouroborane.toml
|
|
VOLUME /etc/bffh/
|
|
VOLUME /var/lib/bffh/
|
|
VOLUME /usr/local/lib/bffh/adapters/
|
|
EXPOSE 59661
|
|
ENTRYPOINT ["sh", "-c", "diflouroborane -c /etc/bffh/bffh.dhall --load=/etc/bffh; diflouroborane -c /etc/bffh/bffh.dhall"]
|