From 07401437c9dc0ad3334b2d132d3cd7e68cd127ed Mon Sep 17 00:00:00 2001 From: Tobias Wood Date: Thu, 24 Aug 2023 22:17:51 +0100 Subject: [PATCH] Add Dockerfile. Thanks Emil! --- Dockerfile | 29 +++++++++++++++++++++++++++++ bootstrap.sh | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 Dockerfile 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]