fix: hardcode nginx-k8s.conf in dashboard Dockerfile
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

The buildx plugin was not passing NGINX_CONF build arg correctly,
causing the docker-compose nginx config (with hostname api-gateway)
to be used instead of the K8s one (with localhost).
This commit is contained in:
Viktor Barzin 2026-02-25 23:46:47 +00:00
parent 0a017f52cb
commit 4f60ef453f
No known key found for this signature in database
GPG key ID: 0EB088298288D958
2 changed files with 2 additions and 5 deletions

View file

@ -48,8 +48,6 @@ steps:
repo: viktorbarzin/trading-bot-dashboard
dockerfile: docker/Dockerfile.dashboard
context: .
build_args:
- NGINX_CONF=docker/nginx-k8s.conf
cache_from: viktorbarzin/trading-bot-dashboard:latest
tags:
- "${CI_PIPELINE_NUMBER}"

View file

@ -23,9 +23,8 @@ FROM nginx:alpine
# Remove default nginx site
RUN rm /etc/nginx/conf.d/default.conf
# Copy custom nginx config (override NGINX_CONF for K8s builds)
ARG NGINX_CONF=docker/nginx.conf
COPY ${NGINX_CONF} /etc/nginx/conf.d/default.conf
# Copy K8s nginx config (api-gateway on localhost since they share a pod)
COPY docker/nginx-k8s.conf /etc/nginx/conf.d/default.conf
# Copy built assets from the builder stage
COPY --from=builder /app/dist /usr/share/nginx/html