Skip to content

Commit

Permalink
Merge pull request #24 from redhatcloudx/improve-dev-setup
Browse files Browse the repository at this point in the history
Add auto reload to dev setup
  • Loading branch information
major authored Jun 24, 2024
2 parents b296136 + 0432510 commit 2cc8f5a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ COPY poetry.lock pyproject.toml /code/
RUN poetry install --no-interaction --no-ansi --no-root --no-dev

COPY cid /code/cid/
COPY entrypoint.sh /code/
COPY import_data.py /code/
COPY README.md /code/
RUN chmod +x /code/entrypoint.sh
CMD ["./entrypoint.sh"]
CMD ["poetry", "run", "uvicorn", "cid.main:app", "--host 0.0.0.0", "--port 80"]
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ version: "3.8"
services:
web:
build: .
command: ["./entrypoint.sh"]
command: bash -c "poetry run uvicorn cid.main:app --host 0.0.0.0 --port 80 --reload"
volumes:
- .:/code
ports:
- 8000:80
environment:
Expand Down
2 changes: 0 additions & 2 deletions entrypoint.sh

This file was deleted.

0 comments on commit 2cc8f5a

Please sign in to comment.