Compare commits

...

5 Commits

Author SHA1 Message Date
Simon Bruder 655a15577a
Add option to build specific commit
continuous-integration/drone/push Build was killed Details
2019-11-30 12:29:20 +00:00
Simon Bruder 280f8de795
Add option to build specific configuration 2019-11-30 12:29:10 +00:00
Simon Bruder 4b4adbc714
Add cache buster 2019-11-30 12:28:16 +00:00
Simon Bruder 1b5db4e009
Execute dll with dotnet instead of binary 2019-11-30 12:23:15 +00:00
Simon Bruder 8e0575f1ef
Use slim base image 2019-11-30 12:22:59 +00:00
1 changed files with 10 additions and 5 deletions

View File

@ -1,4 +1,4 @@
FROM debian:testing as base
FROM debian:testing-slim as base
ENV DOTNET_CLI_TELEMETRY_OPTOUT 1
@ -20,10 +20,15 @@ FROM base as builder
RUN apt-get update \
&& apt-get -y install dotnet-sdk-3.0
RUN git clone --depth=1 https://github.com/ppy/osu \
ARG CACHEBUST=1
ARG GIT_COMMIT=master
ARG CONFIGURATION=Release
RUN git clone --depth=50 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
&& git checkout ${GIT_COMMIT} \
&& dotnet build -c ${CONFIGURATION} osu.Desktop \
&& dotnet publish -c ${CONFIGURATION} -r linux-x64 -o /opt/osu/ osu.Desktop
FROM base
@ -42,4 +47,4 @@ COPY --from=builder /opt/osu/ /opt/osu/
RUN adduser --disabled-password --gecos '' osu
USER osu
ENTRYPOINT ["/opt/osu/osu!"]
ENTRYPOINT ["dotnet", "/opt/osu/osu!.dll"]