Skip to content

Commit

Permalink
Add labels to Docker image
Browse files Browse the repository at this point in the history
Signed-off-by: Shiva <[email protected]>
  • Loading branch information
shiva-beehyv committed Apr 11, 2024
1 parent cb6db24 commit b54d69c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions inji-verify/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,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 b54d69c

Please sign in to comment.