dockerfile with and without migrations

This commit is contained in:
2024-05-26 18:48:13 +02:00
parent 6180db252d
commit 84af8af04e

View File

@ -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"]