ghkdqhrbals / portfolio

React기반 포트폴리오 페이지 프로젝트입니다.
0 stars 0 forks source link

react image size is over 800MB #6

Open ghkdqhrbals opened 2 years ago

ghkdqhrbals commented 2 years ago

gyuminhwangbo@Gyuminui-MacBookPro react-portfolio-website % docker images REPOSITORY TAG IMAGE ID CREATED SIZE react-portfolio-website_app latest d53f7195851e 5 minutes ago 865MB simplebank_api latest 7da6148aa0f0 3 days ago 52.1MB postgres 12-alpine 3496e5bc48fb 7 weeks ago 211MB golang 1.18.3-alpine3.16 155ead2e66ca 7 weeks ago 328MB alpine 3.16 e66264b98777 2 months ago 5.53MB

ghkdqhrbals commented 2 years ago

First I make directory and Dockerfile to seperate images

REPOSITORY TAG IMAGE ID CREATED SIZE react-portfolio-website_client latest 378b1d7e6cae 4 minutes ago 555MB react-portfolio-website_nginx latest de363dd4cddd 7 minutes ago 142MB

With npm install --production tags, it is still big size.

REPOSITORY TAG IMAGE ID CREATED SIZE react-portfolio-website_client latest 713823997dd5 41 seconds ago 555MB react-portfolio-website_nginx latest de363dd4cddd 11 minutes ago 142MB

ghkdqhrbals commented 2 years ago

Check below informations handling with big size docker image

How to reduce react docker image size?