Skip to content

Commit

Permalink
Merge pull request mosip#22 from shiva-beehyv/fix-build-issue
Browse files Browse the repository at this point in the history
Add Labels to Docker image
  • Loading branch information
challabeehyv authored Apr 11, 2024
2 parents aeb48b5 + bb00e44 commit 2d91da2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions inji-web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ RUN npm run build
# Use an official Nginx image as the final production image
FROM nginx:latest

# Add the ARGs as environment variables
ARG SOURCE
ARG COMMIT_HASH
ARG COMMIT_ID
ARG BUILD_TIME

# Copy labels from build stage
LABEL source=${SOURCE}
LABEL commit_hash=${COMMIT_HASH}
LABEL commit_id=${COMMIT_ID}
LABEL build_time=${BUILD_TIME}

# Copy the built React app from the build container to the Nginx container
COPY --from=build /app/build /usr/share/nginx/html

Expand Down

0 comments on commit 2d91da2

Please sign in to comment.