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