From 11957cddba4d1095f7306f67875fb090f6c62443 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Thu, 9 May 2024 02:31:02 +0200 Subject: [PATCH] Make version explicit --- Dockerfile | 7 +++---- README.md | 10 ++++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index be59766..caa2ee0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,11 +5,10 @@ ENV DOTNET_CLI_TELEMETRY_OPTOUT 1 RUN apt-get update \ && apt-get -y install jq +ARG OSU_VERSION +ENV OSU_VERSION=$OSU_VERSION -ARG CACHEBUST=1 -ENV CACHEBUST=$CACHEBUST - -RUN OSU_VERSION=$(curl -s https://api.github.com/repos/ppy/osu/releases/latest | jq -r .tag_name) \ +RUN echo "Downloading and building osu! ${OSU_VERSION}" >&2 \ && git clone --depth=1 --single-branch -b ${OSU_VERSION} https://github.com/ppy/osu \ && cd osu \ && dotnet publish \ diff --git a/README.md b/README.md index 20ffb1d..85de025 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,16 @@ ## How to use +### Building + +Using podman/buildah: + + buildah build --format docker --layers -t osu --build-arg OSU_VERSION=2024.412.1 + +Change `2024.412.1` to the newest osu! version. + +### Running + Place `run.sh` in a directory of your choice. On first run, the directories `data` and `import` will be created.