Compare commits

..

2 commits

Author SHA1 Message Date
9f751e39df update: dependencies and docker 2024-09-06 10:29:10 +08:00
b7906c7c19 add: docker compose 2024-09-06 10:24:10 +08:00
4 changed files with 27 additions and 6 deletions

View file

@ -26,11 +26,7 @@ RUN pip install poetry==1.8.3
# Install the app # Install the app
COPY pyproject.toml poetry.lock ./ COPY pyproject.toml poetry.lock ./
RUN if [ $DEV ]; then \ RUN poetry install dev --no-root && rm -rf $POETRY_CACHE_DIR;
poetry install --with dev --no-root && rm -rf $POETRY_CACHE_DIR; \
else \
poetry install --without dev --no-root && rm -rf $POETRY_CACHE_DIR; \
fi
FROM base as runtime FROM base as runtime

10
docker-compose.yml Normal file
View 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
View file

@ -245,6 +245,20 @@ uvicorn = {version = ">=0.15.0", extras = ["standard"]}
[package.extras] [package.extras]
standard = ["uvicorn[standard] (>=0.15.0)"] 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]] [[package]]
name = "h11" name = "h11"
version = "0.14.0" version = "0.14.0"
@ -1122,4 +1136,4 @@ files = [
[metadata] [metadata]
lock-version = "2.0" lock-version = "2.0"
python-versions = "^3.12" python-versions = "^3.12"
content-hash = "0eafec6589aee7b85b4bf3d6069d30408fa8ea283a3647f78849259a4718bcca" content-hash = "73bcb98bfa117c5c63b3a893f402d0f492c7ce531d7c558328c05c700eaf4a60"

View file

@ -12,6 +12,7 @@ uvicorn = "^0.30.6"
python-dotenv = "^1.0.1" python-dotenv = "^1.0.1"
requests = "^2.32.3" requests = "^2.32.3"
websocket-client = "^1.8.0" websocket-client = "^1.8.0"
finnhub-python = "^2.4.20"
[build-system] [build-system]