mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-22 06:47:56 +01:00
added dockerfile and docker-compose.yaml
This commit is contained in:
parent
832baea07d
commit
20a92be2a9
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# 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
|
||||||
|
# RUN diflouroborane --print-default > /etc/diflouroborane.toml
|
||||||
|
VOLUME /etc/diflouroborane.toml
|
||||||
|
EXPOSE 59661
|
||||||
|
ENTRYPOINT ["diflouroborane"]
|
12
docker-compose.yaml
Normal file
12
docker-compose.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
bffh:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "59661:59661"
|
||||||
|
volumes:
|
||||||
|
- "$PWD/config.toml:/etc/diflouroborane.toml"
|
||||||
|
links:
|
||||||
|
- mqtt
|
||||||
|
mqtt:
|
||||||
|
image: eclipse-mosquitto
|
Loading…
Reference in New Issue
Block a user