diff --git a/heroku.Dockerfile b/heroku.Dockerfile index 34c28ec..0e8586b 100644 --- a/heroku.Dockerfile +++ b/heroku.Dockerfile @@ -10,9 +10,11 @@ WORKDIR /home/indexer # Copy source code COPY . . -# Install indexer +# Install indexer and pin the version of poetry RUN pip3 install poetry==1.6.1 RUN poetry install +# the heroku.yml 'run' directive is incompatible with poetry +# so we export to the requirements.txt format and use pip3 RUN poetry export --without-hashes --format=requirements.txt > requirements.txt RUN pip3 install -r requirements.txt RUN yarnpkg install diff --git a/heroku.yml b/heroku.yml index 2e78836..837d9fe 100644 --- a/heroku.yml +++ b/heroku.yml @@ -1,9 +1,9 @@ build: docker: - index-regen: heroku.Dockerfile + indexer: heroku.Dockerfile run: - index-regen: python main.py + indexer: python main.py release: - image: index-regen + image: indexer command: - PGSSLMODE=no-verify yarnpkg migrate