From 5dbd8bf0585dc9834a9bc4e47b6286c3ba5a687a Mon Sep 17 00:00:00 2001 From: Brian <120551412+DnKhanhh@users.noreply.github.com> Date: Wed, 24 Apr 2024 16:22:25 +0700 Subject: [PATCH] update dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8e3e14a..10b6bec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ COPY db/migration ./migration EXPOSE 8082 -CMD set -e && echo "Running database migration..." && /app/migrate -path /app/migration -database "$DB_SOURCE" -verbose up && echo "Database migration complete." && /app/main +CMD set -e && echo "Running database migration..." && source /app/app.env && /app/migrate -path /app/migration -database "$DB_SOURCE" -verbose up && echo "Database migration complete." && /app/main # CMD [ "/app/main" ] # ENTRYPOINT [ "/app/start.sh" ]