Skip to content

Commit b8fdaeb

Browse files
author
Andre Felipe de Barros Azevedo Nogueira
committed
ci(docker): Limit JVM memory usage to prevent OOM errors on Railway
1 parent 797d80b commit b8fdaeb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ EXPOSE 8081
1717

1818
COPY --from=build /app/target/*.jar app.jar
1919

20-
ENTRYPOINT [ "java", "-jar", "app.jar" ]
20+
# Adicionando limite de memória no comando para plano free Railway
21+
ENTRYPOINT ["java", "-Xmx256m", "-Xss512k", "-jar", "app.jar"]

0 commit comments

Comments
 (0)