From 655a15577a0097d23e03576d8681f1c7c21805dd Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 30 Nov 2019 12:29:20 +0000 Subject: [PATCH] Add option to build specific commit --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 52f96d0..48fa5b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,10 +21,12 @@ RUN apt-get update \ && apt-get -y install dotnet-sdk-3.0 ARG CACHEBUST=1 +ARG GIT_COMMIT=master ARG CONFIGURATION=Release -RUN git clone --depth=1 https://github.com/ppy/osu \ +RUN git clone --depth=50 https://github.com/ppy/osu \ && cd osu \ + && git checkout ${GIT_COMMIT} \ && dotnet build -c ${CONFIGURATION} osu.Desktop \ && dotnet publish -c ${CONFIGURATION} -r linux-x64 -o /opt/osu/ osu.Desktop