Skip to content

Commit

Permalink
Use entrypoint pattern for Docker.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Jan 15, 2024
1 parent b449be2 commit d8bc18b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ COPY ./ /app
WORKDIR /app

RUN pip install -r requirements.txt

CMD ["python", "-m", "yellowstone", "/app/config.toml"]
ENTRYPOINT ["/app/entrypoint.sh"]
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

# entrypoint script meant for use by Docker

yes | yoyo apply
exec python -m yellowstone /app/config.toml

0 comments on commit d8bc18b

Please sign in to comment.