Skip to content

Commit

Permalink
fix(infra): set default value for scorer id (#262)
Browse files Browse the repository at this point in the history
* fix(infra): set default value for scorer id

* fix(infra): set CERAMIC_CACHE_SCORER_ID when building image
  • Loading branch information
Tim Schultz authored Jun 2, 2023
1 parent 39acbf4 commit da954e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ ENV PATH="/usr/src/.venv/bin/:${PATH}"

WORKDIR /app

RUN STATIC_ROOT=/app/static SECRET_KEY=secret_is_irelevent_here DATABASE_URL=sqlite:////dunmmy_db.sqlite3 python manage.py collectstatic --noinput
RUN STATIC_ROOT=/app/static SECRET_KEY=secret_is_irelevent_here CERAMIC_CACHE_SCORER_ID=1 DATABASE_URL=sqlite:////dunmmy_db.sqlite3 python manage.py collectstatic --noinput

CMD ["gunicorn", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "scorer.asgi:application", "-b", "0.0.0.0:8000"]

1 comment on commit da954e2

@faizikhan1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

Please sign in to comment.