Skip to content

Commit

Permalink
Move cp instructions to builder
Browse files Browse the repository at this point in the history
  • Loading branch information
gbraad committed May 30, 2023
1 parent c3f6cd1 commit 7b318cf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ RUN npm install -g yarn \
&& npx yarn install \
&& npx yarn build

RUN mkdir /tmp/extension \
&& cp /opt/app-root/src/package.json \
/opt/app-root/src/LICENSE \
/opt/app-root/src/README.md \
/opt/app-root/src/icon.png /tmp/extension \
&& cp -r /opt/app-root/src/dist /tmp/extension/dist


FROM scratch

Expand All @@ -31,8 +38,4 @@ LABEL org.opencontainers.image.title="Red Hat OpenShift Local" \
org.opencontainers.image.vendor="redhat" \
io.podman-desktop.api.version=">= 0.16.0"

COPY --from=builder /opt/app-root/src/package.json \
/opt/app-root/src/LICENSE \
/opt/app-root/src/README.md \
/opt/app-root/src/icon.png /extension/
COPY --from=builder /opt/app-root/src/dist /extension/dist
COPY --from=builder /tmp/extension/ /extension

0 comments on commit 7b318cf

Please sign in to comment.