Skip to content

Commit

Permalink
Merge pull request #353 from Gregory-Pereira/use-registry-access-base…
Browse files Browse the repository at this point in the history
…-image-for-ps
  • Loading branch information
vishnoianil authored Nov 19, 2024
2 parents 8601f03 + 3a20c93 commit efa429d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pathservice/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY ./pathservice ./
RUN go build -o bin/pathservice

# Start a new stage from scratch
FROM registry.redhat.io/ubi9-micro@sha256:113775a4479af632fde314af652daa6a45ab3d34b59ceb76a777616131daa6bd
FROM registry.access.redhat.com/ubi9-micro:9.5-1731934928

# Copy the binary from the previous stage
COPY --from=builder /opt/app-root/src/bin/pathservice /pathservice
Expand Down
4 changes: 4 additions & 0 deletions src/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ FROM registry.access.redhat.com/ubi9/nodejs-22:9.5-1730543890
WORKDIR /opt/app-root/src

COPY package*.json ./

USER root
RUN chown -R default:root /opt/app-root/src/package*.json
USER default
RUN npm install
COPY ./ .

Expand Down

0 comments on commit efa429d

Please sign in to comment.