Add option to build specific configuration

master
Simon Bruder 2019-11-30 12:29:10 +00:00
parent 4b4adbc714
commit 280f8de795
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 3 additions and 2 deletions

View File

@ -21,11 +21,12 @@ RUN apt-get update \
&& apt-get -y install dotnet-sdk-3.0
ARG CACHEBUST=1
ARG CONFIGURATION=Release
RUN git clone --depth=1 https://github.com/ppy/osu \
&& cd osu \
&& dotnet build -c Release osu.Desktop \
&& dotnet publish -c Release -r linux-x64 -o /opt/osu/ osu.Desktop
&& dotnet build -c ${CONFIGURATION} osu.Desktop \
&& dotnet publish -c ${CONFIGURATION} -r linux-x64 -o /opt/osu/ osu.Desktop
FROM base