mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-21 22:47:55 +01:00
modified dockerfile
This commit is contained in:
parent
8c6b53d050
commit
9bd1b917a2
11
Dockerfile
11
Dockerfile
@ -1,24 +1,23 @@
|
|||||||
# Setup build image for multistage build
|
# Setup build image for multistage build
|
||||||
FROM rust:latest as builder
|
FROM rust:buster as builder
|
||||||
# install build deps
|
# install build deps
|
||||||
RUN apt-get update && apt-get upgrade -y
|
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
|
RUN apt-get install -yqq --no-install-recommends capnproto
|
||||||
|
|
||||||
WORKDIR /usr/src/bffh
|
WORKDIR /usr/src/bffh
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN cargo install --path .
|
RUN cargo build --release
|
||||||
|
|
||||||
|
|
||||||
# Setup deployable image
|
# Setup deployable image
|
||||||
FROM debian:buster-slim
|
FROM debian:buster-slim
|
||||||
# Install runtime deps
|
# Install runtime deps
|
||||||
RUN apt-get update && apt-get upgrade -yqq
|
RUN apt-get update && apt-get upgrade -yqq
|
||||||
RUN apt-get install -yqq libgsasl7 && rm -rf /var/lib/apt/lists/*
|
COPY --from=builder /usr/src/bffh/target/release/bffhd /usr/local/bin/bffhd
|
||||||
COPY --from=builder /usr/local/cargo/bin/diflouroborane /usr/local/bin/diflouroborane
|
|
||||||
#COPY --from=builder /usr/src/bffh/examples/bffh.dhall /etc/diflouroborane.dhall
|
#COPY --from=builder /usr/src/bffh/examples/bffh.dhall /etc/diflouroborane.dhall
|
||||||
# RUN diflouroborane --print-default > /etc/diflouroborane.toml
|
# RUN diflouroborane --print-default > /etc/diflouroborane.toml
|
||||||
VOLUME /etc/bffh/
|
VOLUME /etc/bffh/
|
||||||
VOLUME /var/lib/bffh/
|
VOLUME /var/lib/bffh/
|
||||||
VOLUME /usr/local/lib/bffh/adapters/
|
VOLUME /usr/local/lib/bffh/adapters/
|
||||||
EXPOSE 59661
|
EXPOSE 59661
|
||||||
ENTRYPOINT ["sh", "-c", "diflouroborane -c /etc/bffh/bffh.dhall --load=/etc/bffh; diflouroborane -c /etc/bffh/bffh.dhall"]
|
ENTRYPOINT ["sh", "-c", "bffhd -c /etc/bffh/bffh.dhall --load=/etc/bffh; bffhd -c /etc/bffh/bffh.dhall"]
|
||||||
|
Loading…
Reference in New Issue
Block a user