mirror of
https://github.com/timokz/flutter-vienna-hackathon-25.git
synced 2025-11-08 19:24:19 +01:00
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:
parent
5b8b317e89
commit
6786def063
1 changed files with 2 additions and 2 deletions
|
|
@ -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"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue