Skip to content

Commit

Permalink
Merge pull request #11 from shiva-beehyv/add-labels-docker-image
Browse files Browse the repository at this point in the history
Add labels to Docker image
  • Loading branch information
challabeehyv authored Apr 15, 2024
2 parents cb6db24 + b54d69c commit 1e206ef
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 1e206ef

Please sign in to comment.