From f3c1d76ae5f5af66330aa8af23ffd72f50deac1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rio=20Idival?= Date: Sun, 24 May 2026 22:34:17 -0300 Subject: [PATCH] fix: listen on port 8080 for non-root container --- Dockerfile | 2 +- k8s/prod.yaml | 4 ++-- nginx.conf | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8592e20..d2a679c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,6 +45,6 @@ COPY nginx.conf /etc/nginx/conf.d/default.conf USER nginx-user -EXPOSE 80 +EXPOSE 8080 CMD ["nginx", "-g", "daemon off;"] diff --git a/k8s/prod.yaml b/k8s/prod.yaml index f691cc2..27e0965 100644 --- a/k8s/prod.yaml +++ b/k8s/prod.yaml @@ -24,11 +24,11 @@ spec: - name: batida-landing image: git.batida.io/batida/batida-landing:latest ports: - - containerPort: 80 + - containerPort: 8080 livenessProbe: httpGet: path: / - port: 80 + port: 8080 initialDelaySeconds: 5 periodSeconds: 30 resources: diff --git a/nginx.conf b/nginx.conf index 1efdb9f..ae65579 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,5 +1,5 @@ server { - listen 80; + listen 8080; server_name _; root /usr/share/nginx/html;