FROM debian:stretch-slim RUN apt-get update && apt-get upgrade -y RUN apt-get install --no-install-recommends -y ca-certificates libssl-dev libpq-dev \ && apt-get remove -y --allow-remove-essential gzip \ && apt-get autoremove -y \ && rm -rf /var/lib/apt/lists/* RUN useradd -ms /bin/bash bloom RUN mkdir /bitflow && chown -R bloom:bloom /bitflow && chmod 700 /bitflow COPY /dist/bitflow /bitflow/bitflow WORKDIR /bitflow USER bloom CMD ["./bitflow"]