Add option to build specific configuration

This commit is contained in:
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

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