Skip to content

Conversation

@paazmaya
Copy link
Contributor

Another option for #414
to answer #332

@pashidlos
Copy link
Member

this should solve security issue https://github.com/Visual-Regression-Tracker/frontend/pull/197/files

FROM nginx:1.25-alpine3.18-slim

# Install Node.js LTS version needed for env variable generation
RUN apk add --update nodejs
Copy link
Member

@pashidlos pashidlos Aug 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is the smaller possible image that has nodejs

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

COPY .env .

# Start Nginx server with override ENV variables script
CMD ["/bin/sh", "-c", "node /usr/share/nginx/html/generate-env-browser.mjs && nginx -g \"daemon off;\""]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you try with docker-compose if it works?
I get error using those versions
VRT_UI_VERSION=5.0.0-rc4
VRT_API_VERSION=5.0.0
VRT_MIGRATION_VERSION=5.0.0

image

@paazmaya paazmaya closed this Aug 22, 2023
@paazmaya paazmaya deleted the 414-load-env-also-via-nodejs branch August 22, 2023 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants