I am new to Docker, I have a React.js app with the build forder (npm run build
), I want to dockerize my app to make a container.
I made a Dockerfile with this config:
FROM node:12-alpine
WORKDIR /app
COPY package.json /app
RUN npm install
COPY . /app
CMD [ "npm", "start" ]
I got those images : dockerimages.
Can I dockerize only the build path which is 20MB or the image size is normal?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…