mirror of
https://github.com/ryanamay/sparkle.git
synced 2024-09-20 02:40:35 +00:00
Compare commits
2 commits
9af7148720
...
9f751e39df
Author | SHA1 | Date | |
---|---|---|---|
9f751e39df | |||
b7906c7c19 |
4 changed files with 27 additions and 6 deletions
|
@ -26,11 +26,7 @@ RUN pip install poetry==1.8.3
|
|||
|
||||
# Install the app
|
||||
COPY pyproject.toml poetry.lock ./
|
||||
RUN if [ $DEV ]; then \
|
||||
poetry install --with dev --no-root && rm -rf $POETRY_CACHE_DIR; \
|
||||
else \
|
||||
poetry install --without dev --no-root && rm -rf $POETRY_CACHE_DIR; \
|
||||
fi
|
||||
RUN poetry install dev --no-root && rm -rf $POETRY_CACHE_DIR;
|
||||
|
||||
FROM base as runtime
|
||||
|
||||
|
|
10
docker-compose.yml
Normal file
10
docker-compose.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
services:
|
||||
sparkle:
|
||||
container_name: sparkle
|
||||
image: sparkle:lastest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
environment: # use .env
|
||||
- FINNHUB_API_KEY=${FINNHUB_API_KEY}
|
||||
restart: unless-stopped
|
16
poetry.lock
generated
16
poetry.lock
generated
|
@ -245,6 +245,20 @@ uvicorn = {version = ">=0.15.0", extras = ["standard"]}
|
|||
[package.extras]
|
||||
standard = ["uvicorn[standard] (>=0.15.0)"]
|
||||
|
||||
[[package]]
|
||||
name = "finnhub-python"
|
||||
version = "2.4.20"
|
||||
description = "Finnhub API"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
files = [
|
||||
{file = "finnhub-python-2.4.20.tar.gz", hash = "sha256:b207fa936080d489b5045caae2e602ba34d0e26313310ff3d8d505942f24bbce"},
|
||||
{file = "finnhub_python-2.4.20-py3-none-any.whl", hash = "sha256:1c944e7d59d3f9cc8dcdc86c08b19a7a2c77b3d1f57d3c5df49f4d1469e9d0b4"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
requests = ">=2.22.0"
|
||||
|
||||
[[package]]
|
||||
name = "h11"
|
||||
version = "0.14.0"
|
||||
|
@ -1122,4 +1136,4 @@ files = [
|
|||
[metadata]
|
||||
lock-version = "2.0"
|
||||
python-versions = "^3.12"
|
||||
content-hash = "0eafec6589aee7b85b4bf3d6069d30408fa8ea283a3647f78849259a4718bcca"
|
||||
content-hash = "73bcb98bfa117c5c63b3a893f402d0f492c7ce531d7c558328c05c700eaf4a60"
|
||||
|
|
|
@ -12,6 +12,7 @@ uvicorn = "^0.30.6"
|
|||
python-dotenv = "^1.0.1"
|
||||
requests = "^2.32.3"
|
||||
websocket-client = "^1.8.0"
|
||||
finnhub-python = "^2.4.20"
|
||||
|
||||
|
||||
[build-system]
|
||||
|
|
Loading…
Reference in a new issue