Make version explicit

This commit is contained in:
Simon Bruder 2024-05-09 02:31:02 +02:00
parent 34a77be7d7
commit 11957cddba
Signed by: simon
GPG key ID: 347FF8699CDA0776
2 changed files with 13 additions and 4 deletions

View file

@ -5,11 +5,10 @@ ENV DOTNET_CLI_TELEMETRY_OPTOUT 1
RUN apt-get update \ RUN apt-get update \
&& apt-get -y install jq && apt-get -y install jq
ARG OSU_VERSION
ENV OSU_VERSION=$OSU_VERSION
ARG CACHEBUST=1 RUN echo "Downloading and building osu! ${OSU_VERSION}" >&2 \
ENV CACHEBUST=$CACHEBUST
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 \
&& dotnet publish \ && dotnet publish \

View file

@ -2,6 +2,16 @@
## How to use ## 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 Place `run.sh` in a directory of your choice. On first run, the directories
`data` and `import` will be created. `data` and `import` will be created.