diff --git a/Dockerfile b/Dockerfile index 51eccf0..0189219 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,11 +15,10 @@ FROM debian:buster-slim 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 ./docker/startup.sh /startup.sh #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 ["/bin/bash", "/startup.sh"] +ENTRYPOINT ["sh", "-c", "diflouroborane -c /etc/bffh/bffh.dhall --load=/etc/bffh; diflouroborane -c /etc/bffh/bffh.dhall"] diff --git a/docker/startup.sh b/docker/startup.sh deleted file mode 100644 index 9aef043..0000000 --- a/docker/startup.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -CONTAINER_ALREADY_STARTED="/var/lib/bffh/firststartflag" -if [ ! -e $CONTAINER_ALREADY_STARTED ]; then - touch $CONTAINER_ALREADY_STARTED - echo "-- Seeding Database --" - diflouroborane -c /etc/bffh/bffh.dhall --load=/etc/bffh -else - diflouroborane -c /etc/bffh/bffh.dhall -fi