fix flips

This commit is contained in:
2025-03-06 12:48:32 -06:00
parent 7604c78db8
commit 0924e3d0b7
4 changed files with 13 additions and 6 deletions

View File

@@ -7,7 +7,6 @@ ALttPRandomizer/[Bb]in
*/__pycache__ */__pycache__
*/.github */.github
*/_vendor
*/DR_* */DR_*
*/ER_* */ER_*
*/OR_* */OR_*

View File

@@ -5,6 +5,7 @@
"flipsPath": "/flips/flips", "flipsPath": "/flips/flips",
"allowedCors": [ "allowedCors": [
"https://new.alttpr.gwaa.kiwi", "https://new.alttpr.gwaa.kiwi",
"https://api.alttpr.gwaa.kiwi",
"http://localhost:8082" "http://localhost:8082"
], ],
"azureSettings": { "azureSettings": {

View File

@@ -1,5 +1,12 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0-azurelinux3.0 AS build FROM mcr.microsoft.com/dotnet/sdk:8.0-azurelinux3.0 AS build
RUN tdnf install -y wget unzip g++ build-essential
RUN wget https://github.com/Alcaro/Flips/archive/refs/tags/v198.zip -O flips.zip
RUN unzip flips.zip -d /flips
WORKDIR /flips/Flips-198
ARG TARGET=cli
RUN ./make-linux.sh
ARG BUILD_CONFIGURATION=Release ARG BUILD_CONFIGURATION=Release
WORKDIR /src WORKDIR /src
@@ -12,10 +19,10 @@ FROM mcr.microsoft.com/dotnet/aspnet:8.0-azurelinux3.0 AS final
EXPOSE 8080 EXPOSE 8080
EXPOSE 8081 EXPOSE 8081
RUN tdnf install -y python3 wget unzip RUN tdnf install -y python3
RUN wget https://github.com/Alcaro/Flips/releases/download/v198/flips-linux.zip
RUN unzip flips-linux.zip -d /flips RUN mkdir -p /flips
RUN rm flips-linux.zip COPY --from=build /flips/Flips-198/flips /flips/flips
RUN mkdir -p /randomizer/data RUN mkdir -p /randomizer/data
RUN touch /randomizer/data/base2current.json RUN touch /randomizer/data/base2current.json