server: dockerfile: fix broken ENTRYPOINT from generated project

This cost me an entire afternoon. I don't know whose bright idea it
was to just slap all arguments into the ENTRYPOINT, but here we are.

ENTRYPOINT now just runs the `server` executable, while COMMAND is
used to pass arguments / flags to it. This is useful for e.g. passing
`--apply-migrations` for deployments.

Signed-off-by: Max R. Carrara <max@aequito.sh>
This commit is contained in:
Max R. Carrara 2025-08-16 18:40:32 +02:00
parent 5b8b317e89
commit 6786def063

View file

@ -37,5 +37,5 @@ EXPOSE 8080
EXPOSE 8081 EXPOSE 8081
EXPOSE 8082 EXPOSE 8082
# Define the entrypoint command ENTRYPOINT ["/server"]
ENTRYPOINT ./server --mode=$runmode --server-id=$serverid --logging=$logging --role=$role CMD ["--mode", "production", "--server-id", "default", "--logging", "normal", "--role", "monolith"]