Skip to content

Commit

Permalink
Merge pull request #19 from andy-takker/feature/add-feedback
Browse files Browse the repository at this point in the history
[IDB-10] Fix docker files
  • Loading branch information
andy-takker authored Jan 4, 2024
2 parents 6c288a8 + 260cd05 commit 76eae54
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.s
COPY /start.sh /app/
RUN chmod +x /app/start.sh /wait-for-it.sh

COPY ./inclusive_dance_bot /app/inclusive_dance_bot
COPY ./idb /app/idb

ENV PYTHONPATH=/app
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ types-ujson = "^5.9.0.0"
ruff = "^0.1.11"

[tool.poetry.scripts]
bot = "inclusive_dance_bot.__main__:main"
init_data = "inclusive_dance_bot.init_data:main"
migrate = "inclusive_dance_bot.db.__main__:main"
bot = "idb.__main__:main"
init_data = "idb.init_data:main"
migrate = "idb.db.__main__:main"

[build-system]
requires = ["poetry-core"]
Expand Down
6 changes: 3 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /usr/bin/env bash
python -m inclusive_dance_bot.db --pg-url $PG_URL upgrade head
python -m idb.db --pg-url $PG_URL upgrade head

python /app/inclusive_dance_bot/init_data.py
python /app/idb/init_data.py

python -m inclusive_dance_bot
python -m idb

0 comments on commit 76eae54

Please sign in to comment.