Hello!
I started to use Ktor for server applications. I want to launch my application inside Docker. I created Dockerfile and filled it by this documentation. But when I execute command
docker build -t finance-tracker .
my build FREEZING on this line:
RUN gradle buildFatJar --no-daemon
If I execute
gradle buildFatJar --no-daemon
in local terminal, application successfully build.
What do I need to do to fix it?
b
Benoît Liessens
12/28/2022, 11:59 AM
You are running gradle inside the container so it is downloading all dependencies to build everything. Could take a little longer than you’ld except. Are you sure it freezes?
a
Aleksei Tirman [JB]
01/02/2023, 4:01 PM
The freezing may be caused by insufficient memory.