How to delete all the files except for one directory while creating a docker image
I am pushing all the source code inside then i'm creating a build out of it. Then i want to delete all the sourceCode inside the image. How can i do that. FROM node:18.17.1 WORKDIR /app COPY package*.json ./ COPY…