Skip to content

Conversation

pjuaristi-ikerlan
Copy link
Contributor

Description

Closes issue #111

This PR introduces the first version of the Dockerfile to build the React app with Node.js and serve it via Nginx with dynamic environment variable injection.

The environment variable injection has been done following the approach of the portal frontend with some modifications.

Acceptance Criteria

  • A functional Dockerfile exists in the repository.
  • The frontend builds and runs successfully in a containerized environment.
  • Dynamic ENV are injected successfully

Pre-review checks

Please ensure to do as many of the following checks as possible, before asking for committer review:

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
2 Security Hotspots

See analysis details on SonarQube Cloud

WORKDIR /app

# Install necessary dependencies
RUN apk add --no-cache python3 make g++ jq

Check warning

Code scanning / KICS

Unpinned Package Version in Apk Add Warning

RUN instruction apk add --no-cache python3 make g++ jq does not use package pinning form


# Stage 2: Serve the app with Nginx
FROM nginxinc/nginx-unprivileged:alpine

Check notice

Code scanning / KICS

Healthcheck Instruction Missing Note

Dockerfile doesn't contain instruction 'HEALTHCHECK'
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.

1 participant