From 84af8af04eaa9a3b0ca48e7b9bd654a43c1411e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Diedrich?= Date: Sun, 26 May 2024 18:48:13 +0200 Subject: [PATCH] dockerfile with and without migrations --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 685e5b1..502b57d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -88,4 +88,8 @@ COPY --from=builder --chown=nobody:root /app/_build/${MIX_ENV}/rel/homepage ./ USER nobody -CMD ["sh", "-c", "/app/bin/migrate && /app/bin/server"] +# with migrations (doesnt work if no migrations exist) +#CMD ["sh", "-c", "/app/bin/migrate && /app/bin/server"] + +# without migrations +CMD ["/app/bin/server"] \ No newline at end of file