diff --git a/docker-compose.yml b/docker-compose.yml index bb9ee7bc..662817e2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: nginx: restart: unless-stopped build: - target: prod + target: nginx-prod context: ./web image: boilerplate.azurecr.io/nginx:latest ports: diff --git a/radixconfig.yaml b/radixconfig.yaml index 3ceab068..ed60c0c2 100644 --- a/radixconfig.yaml +++ b/radixconfig.yaml @@ -50,7 +50,7 @@ spec: image: ghcr.io/equinor/template-fastapi-react/nginx:{imageTagName} alwaysPullImageOnDeploy: true environmentConfig: - - environment: prod + - environment: nginx-prod imageTagName: production - environment: test imageTagName: latest diff --git a/web/Dockerfile b/web/Dockerfile index 97e81eab..ee855e56 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -61,6 +61,6 @@ COPY nginx/environments/web.dev.conf /etc/nginx/environments/ FROM base as build RUN yarn build -FROM server AS prod +FROM server AS nginx-prod COPY nginx/environments/web.prod.conf /etc/nginx/environments/ COPY --from=build /code/build /data/www