Skip to content

Instantly share code, notes, and snippets.

@x-yuri

x-yuri/a.md Secret

Created February 15, 2023 02:22
Show Gist options
  • Save x-yuri/d5e0eb73a06883ce0dcac4b2ebe6a6b9 to your computer and use it in GitHub Desktop.
Save x-yuri/d5e0eb73a06883ce0dcac4b2ebe6a6b9 to your computer and use it in GitHub Desktop.

Dockerfile:

FROM node:18-alpine AS a
RUN echo a > a && chown node: a
USER node

FROM node:18-alpine
COPY --from=a /a /a
RUN cat a
$ docker build -f Dockerfile4 .
...
Step 6/6 : RUN cat a
 ---> Running in 973e91763867
a
Removing intermediate container 973e91763867
 ---> 71a91bf5b1b9
Successfully built 71a91bf5b1b9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment