wcodesoft / sentency-server

Server for the Sentency Project
MIT License
0 stars 0 forks source link

Smaller Docker Images #13

Open walterjgsp opened 3 years ago

walterjgsp commented 3 years ago

Description

After some research I found that's possible to create really small images in Java using Graal VM. Today we are being able to create a 187mb image for the server and Graal VM native image promise to get us a <30mb version. This is a big improvement for someone who has limited space and memory on the Amazon Lightsail VM.

walterjgsp commented 3 years ago

In order to build a GraalVM docker image with a native server, we need to do the following tasks:

After all those steps are done we can check the result by testing the size of the image and if all functionalities are still working.

Links

walterjgsp commented 3 years ago

The current GraalVM solution doesn't solve my problems. It's impossible to use Ktor. Let's try to find another solution or reach this issue after some time.