From 2ce05616b10e8b8f7f22747b2db0e58bec4b5c8e Mon Sep 17 00:00:00 2001 From: Bronek Szulc Date: Wed, 27 Nov 2024 16:01:18 -0500 Subject: [PATCH] another --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 81fae08..977a9d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,7 +29,9 @@ RUN if [ "$ENV" = "local" ]; then \ EXPOSE 8001 -ENTRYPOINT ["db/migrations.sh"] +ENTRYPOINT if [ "$ENV" != "local" ]; then \ + db/migrations.sh; \ + fi CMD if [ "$ENV" = "local" ]; then \ air; \