fix: hardcode nginx-k8s.conf in dashboard Dockerfile
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
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:
parent
0a017f52cb
commit
4f60ef453f
2 changed files with 2 additions and 5 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue