B4X FEED B4J webapp Docker image created but it is huge

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: B4J webapp Docker image created but it is huge است. این موضوع تا کنون 24 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع B4J webapp Docker image created but it is huge
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
24
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Today I have successfully created my first docker image of a webapp for my vps. The image had a total size of around 580 mb of which the 55 is the debian base image and the 430 is the java folder to run the app inside the container (I copied jdk-11.0.1). This size is unacceptable, and as I am not a totally docker aware guy I would like to ask for the alternative solutions to run the app inside the container. I tried with alpine base image (almost 5.6mb) and I was not able to run java in it. The main culprit though is the java folder which is extremely big. How can I reduce its size to only the needed files? Anyone has any solutions?

 

عقب
بالا