Skip to content

Commit

Permalink
new entrypoint script (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
derenv authored Nov 24, 2024
1 parent 1758ce4 commit 1f18ff5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ RUN source /usr/src/app/osrs-bluesky-bot/bin/activate \
ENV BLUESKY_USERNAME=osrsbot-unofficial.bsky.social
ENV OSRS_RSS_URL=https://secure.runescape.com/m=news/latest_news.rss?oldschool=true

# Run
# Copy over main script
COPY main.py /usr/src/app/main.py
CMD ["source", "/usr/src/app/osrs-bluesky-bot/bin/activate", "&&", "exec", "python", "main.py"]

# Copy over entrypoint script
COPY run.sh /usr/src/app/run.sh

# Run
CMD ["sh","/usr/src/app/run.sh"]
6 changes: 6 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

# SPDX-FileCopyrightText: 2024 Deren Vural [email protected]
# SPDX-License-Identifier: MIT

source /usr/src/app/osrs-bluesky-bot/bin/activate && exec python main.py"

0 comments on commit 1f18ff5

Please sign in to comment.