From 03a51815e2a6f95c8d8377024df27a95978546ab Mon Sep 17 00:00:00 2001 From: ChiaraBm Date: Thu, 22 May 2025 20:44:20 +0200 Subject: [PATCH] Added additional env configuration options for api server. Changed the tailwind run command to use the non-interactive build --- .gitignore | 3 ++- Dockerfile | 4 ++-- compose.yml | 5 ++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index e8db029..93121e1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ **/.idea/** **/data/** -**/.env \ No newline at end of file +**/.env +**/additional.env \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index d0bf1dd..3263f45 100644 --- a/Dockerfile +++ b/Dockerfile @@ -72,13 +72,13 @@ RUN dotnet nuget remove source moonlightNuget RUN dotnet nuget add source /src/pluginNuget -n pluginNuget # Prepare moonlight for compilation -RUN dotnet moonlight prebuild /src/Moonlight /src/pluginNuget +RUN dotnet moonlight prebuild /src/Moonlight /src/pluginNuget FROM build-plugins AS build-final # Build tailwind WORKDIR /src/Moonlight/Moonlight.Client/Styles -RUN npm run tailwind +RUN npm run tailwind-build # Build moonlight WORKDIR "/src/Moonlight/Moonlight.ApiServer" diff --git a/compose.yml b/compose.yml index 32d5d15..868d544 100644 --- a/compose.yml +++ b/compose.yml @@ -22,11 +22,14 @@ services: - MOONLIGHT_DATABASE_DATABASE=${MOONLIGHT_DATABASE_NAME} - MOONLIGHT_PUBLICURL=${MOONLIGHT_URL} - MOONLIGHT_AUTHENTICATION_OAUTH2_ACCESSENDPOINT=http://localhost:8080/oauth2/handle # Use this when moonlight is using local oauth2 and a different port as the public url + env_file: + - path: "additional.env" + required: false volumes: - ${MOONLIGHT_DATA}/moonlight:/app/storage links: - db - pull_policy: build + pull_policy: ${MOONLIGHT_BUILD} db: image: postgres:latest