Compare commits
No commits in common. "72803468f6390d75dc6dd93c16acd3331653eca2" and "ad15a2a5162d2b213dab0fa31774329c9975b940" have entirely different histories.
72803468f6
...
ad15a2a516
15
Dockerfile
15
Dockerfile
|
@ -10,15 +10,8 @@ ARG CACHEBUST=1
|
||||||
RUN OSU_VERSION=$(curl -s https://api.github.com/repos/ppy/osu/releases/latest | jq -r .tag_name) \
|
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 \
|
&& git clone --depth=1 --single-branch -b ${OSU_VERSION} https://github.com/ppy/osu \
|
||||||
&& cd osu \
|
&& cd osu \
|
||||||
&& curl https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/games/osu-lazer/bypass-tamper-detection.patch | git apply \
|
&& dotnet publish -c Release -r linux-x64 --self-contained true -o /opt/osu/ osu.Desktop /p:PublishTrimmed=true \
|
||||||
&& dotnet publish \
|
&& echo "Version ${OSU_VERSION}, Built on $(date '+%Y-%m-%d %H:%M')" > /opt/osu/version
|
||||||
-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
|
FROM mcr.microsoft.com/dotnet/core/runtime-deps
|
||||||
|
|
||||||
|
@ -36,4 +29,6 @@ COPY --from=builder /opt/osu/ /opt/osu/
|
||||||
RUN adduser --disabled-password --gecos '' osu
|
RUN adduser --disabled-password --gecos '' osu
|
||||||
USER osu
|
USER osu
|
||||||
|
|
||||||
ENTRYPOINT ["/opt/osu/osu!"]
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
|
|
||||||
|
ENTRYPOINT ["entrypoint.sh"]
|
||||||
|
|
8
entrypoint.sh
Executable file
8
entrypoint.sh
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
cat << EOF
|
||||||
|
┏━┓┏━┓╻ ╻╻
|
||||||
|
┃ ┃┗━┓┃ ┃╹
|
||||||
|
┗━┛┗━┛┗━┛╹
|
||||||
|
EOF
|
||||||
|
cat /opt/osu/version
|
||||||
|
exec /opt/osu/osu!
|
Loading…
Reference in a new issue