From 49c3bf282b7810c4155a8af1599c7bd4d4cbf2bf Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 25 Aug 2020 13:29:27 +0200 Subject: [PATCH] Build osu with version argument --- Dockerfile | 14 +++++++++----- entrypoint.sh | 8 -------- 2 files changed, 9 insertions(+), 13 deletions(-) delete mode 100755 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index d556d4b..2cfdc77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,14 @@ ARG CACHEBUST=1 RUN OSU_VERSION=$(curl -s https://api.github.com/repos/ppy/osu/releases/latest | jq -r .tag_name) \ && git clone --depth=1 --single-branch -b ${OSU_VERSION} https://github.com/ppy/osu \ && cd osu \ - && dotnet publish -c Release -r linux-x64 --self-contained true -o /opt/osu/ osu.Desktop /p:PublishTrimmed=true \ - && echo "Version ${OSU_VERSION}, Built on $(date '+%Y-%m-%d %H:%M')" > /opt/osu/version + && dotnet publish \ + -c Release \ + -r linux-x64 \ + --self-contained true \ + -o /opt/osu/ \ + -p:PublishTrimmed=true \ + -p:Version=${OSU_VERSION} \ + osu.Desktop FROM mcr.microsoft.com/dotnet/core/runtime-deps @@ -29,6 +35,4 @@ COPY --from=builder /opt/osu/ /opt/osu/ RUN adduser --disabled-password --gecos '' osu USER osu -COPY entrypoint.sh /usr/local/bin/ - -ENTRYPOINT ["entrypoint.sh"] +ENTRYPOINT ["/opt/osu/osu!"] diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100755 index dce2cc5..0000000 --- a/entrypoint.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -cat << EOF -┏━┓┏━┓╻ ╻╻ -┃ ┃┗━┓┃ ┃╹ -┗━┛┗━┛┗━┛╹ -EOF -cat /opt/osu/version -exec /opt/osu/osu!