diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..05893c6c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,29 @@ +FROM debian:latest + +#### Dependencies #### +RUN \ + apt-get update \ + && apt-get install -y --no-install-recommends \ + build-essential \ + gcc \ + pkg-config \ + software-properties-common \ + git man unzip wget curl cmake \ + ninja-build zip zlib1g zlib1g-dev autoconf autoconf-archive \ + && rm -rf /var/lib/apt/lists/* + +#### BUILD #### +WORKDIR /root +RUN \ + git clone https://github.com/spinicist/riesling.git \ + && cd riesling \ + && export VCPKG_FORCE_SYSTEM_BINARIES=0 \ + && ./bootstrap.sh -i $PWD/../ -f native \ + && cd .. \ + && rm -rf riesling .cache + +RUN mkdir /root/app +WORKDIR /root/app + +# Define default command. +ENTRYPOINT ["/root/bin/riesling"] diff --git a/bootstrap.sh b/bootstrap.sh index 936cbae7..8a85fa7e 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,4 +1,4 @@ -#!/bin/bash -eux +#!/bin/bash -eu USAGE="Usage: $0 [options]