From 2c1a1e905fa2a513950be7678ee9a6368b14334a Mon Sep 17 00:00:00 2001 From: Jim Taber Date: Mon, 2 Feb 2026 12:24:02 -0600 Subject: [PATCH 1/3] Disable --link flag in Micronaut-generated Dockerfiles Configure MicronautDockerfile and NativeImageDockerfile tasks to set useCopyLink=false, removing the COPY --link option from generated Dockerfiles. This improves compatibility with Docker environments that don't support BuildKit. Co-Authored-By: Claude Opus 4.5 Signed-off-by: Jim Taber --- UnityAuth/build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/UnityAuth/build.gradle b/UnityAuth/build.gradle index 3612865..dcf4d16 100644 --- a/UnityAuth/build.gradle +++ b/UnityAuth/build.gradle @@ -52,6 +52,15 @@ java { } graalvmNative.toolchainDetection = false + +tasks.withType(io.micronaut.gradle.docker.MicronautDockerfile).configureEach { + useCopyLink = false +} + +tasks.withType(io.micronaut.gradle.docker.NativeImageDockerfile).configureEach { + useCopyLink = false +} + micronaut { runtime("netty") testRuntime("junit5") From c2fd6c358f617b3f6acaecf10962d55851a16de4 Mon Sep 17 00:00:00 2001 From: Jim Taber Date: Fri, 6 Feb 2026 19:03:25 -0600 Subject: [PATCH 2/3] Downgrade Node version in frontend Dockerfile from 24 to 18 Node 24 causes compatibility issues with Cloud Run deployment. Reverting to Node 18 which was used in the last successful build. Co-Authored-By: Claude Opus 4.5 Signed-off-by: Jim Taber --- DockerfileFrontend-prod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DockerfileFrontend-prod b/DockerfileFrontend-prod index a12c03b..e5c2731 100644 --- a/DockerfileFrontend-prod +++ b/DockerfileFrontend-prod @@ -1,5 +1,5 @@ # Build the frontend and serve with nginx -FROM node:24 AS builder +FROM node:18 AS builder COPY frontend frontend WORKDIR frontend From cb6b48868ba38105c57bbde9632739a10bcb7235 Mon Sep 17 00:00:00 2001 From: Jim Taber Date: Fri, 6 Feb 2026 19:20:44 -0600 Subject: [PATCH 3/3] Remove /api/ proxy block from nginx config for Cloud Run compatibility The proxy_pass to unity-auth-api:8081 causes nginx to fail on startup in Cloud Run since that hostname doesn't exist. This block was added after the last successful deploy and breaks the container startup. Co-Authored-By: Claude Opus 4.5 Signed-off-by: Jim Taber --- DockerfileFrontend-prod | 2 +- nginx-default.conf | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/DockerfileFrontend-prod b/DockerfileFrontend-prod index e5c2731..a12c03b 100644 --- a/DockerfileFrontend-prod +++ b/DockerfileFrontend-prod @@ -1,5 +1,5 @@ # Build the frontend and serve with nginx -FROM node:18 AS builder +FROM node:24 AS builder COPY frontend frontend WORKDIR frontend diff --git a/nginx-default.conf b/nginx-default.conf index 2bc7789..7525d45 100644 --- a/nginx-default.conf +++ b/nginx-default.conf @@ -19,24 +19,6 @@ server { root /usr/share/nginx/html; } - # TODO: This tries to route the requests from localhost to the API container - # with hostname unity-auth-api but currently receive 504 Gateway Timeout - location /api/ { - proxy_pass http://unity-auth-api:8081; - proxy_http_version 1.1; - - proxy_connect_timeout 60s; - proxy_send_timeout 60s; - proxy_read_timeout 60s; - send_timeout 60s; - - # Forward headers - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ {