Skip to content

Commit

Permalink
lns: fix entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
drjova committed Jan 18, 2024
1 parent ed77559 commit 0ad92bd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Library-Notification-Service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,14 @@ ENV PYTHONUNBUFFERED 1
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi

export MAX_NOTIFICATION_RESULTS_COUNT=20
export LIBRARY_CATALOGUE_SITE_API="https://catalogue.library.cern/api/literature/?q="
export LIBRARY_CATALOGUE_SITE_URL="https://catalogue.library.cern/search?q="
export LIBRARY_CATALOGUE_BACKOFFICE_ITEMS_API="https://catalogue.library.cern/api/items/?q="
export LIBRARY_CATALOGUE_BACKOFFICE_EITEMS_API="https://catalogue.library.cern/api/eitems/?q="
export NOTIFICATIONS_API_URL="https://notifications.web.cern.ch/api/notifications"
export NOTIFICATIONS_CHANNEL_ID="4e383ca0-7df0-421f-a062-741d5d459cd8"


# Set the entrypoint to execute the CLI using Poetry
ENTRYPOINT ["python", "-m", "src.cli"]
ENTRYPOINT ["python", "-m", "src.cli", "newsletter"]

0 comments on commit 0ad92bd

Please sign in to comment.