Skip to content

Commit

Permalink
Improve build time
Browse files Browse the repository at this point in the history
  • Loading branch information
carkod committed Dec 3, 2024
1 parent ebdf28e commit 1ae69eb
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 22 deletions.
17 changes: 5 additions & 12 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
node_modules
__pycache__
jsconfig.json
.eslintrc.js
*.md
.vscode
.devcontainer
.ini
.git
.github
.gitignore
.github/
^\.*
!.dockerignore
!.gitignore
docs/
ecosystem.config.js
.http
mongo_data
mongo_data.old
.DS_Store
*.pyc
api/main/config/*.cfg
.mypy_cache
db.dump
__pycache__
.pytest_cache
kafka_data
kafka_data
pg_data
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ COPY /terminal/ /app/
RUN npm install && npm run build

FROM unit:1.33.0-python3.11
RUN apt-get update --yes && apt-get install postgresql postgresql-contrib curl -y
COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY api api
WORKDIR api
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.cronjobs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10
FROM python:3.11
COPY api api
WORKDIR api
RUN pip3 install pipenv
Expand Down
4 changes: 1 addition & 3 deletions Dockerfile.streaming
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ COPY api api
WORKDIR api
RUN pip3 install pipenv
RUN pipenv install --system --deploy --ignore-pipfile --clear
COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]
ENTRYPOINT ["python3", "-u", "market_updates.py"]

STOPSIGNAL SIGTERM
4 changes: 3 additions & 1 deletion api/bots/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ def check_names_not_empty(cls, v):
@field_validator("balance_size_to_use", "base_order_size", "base_order_size")
@classmethod
def countables(cls, v):
if isinstance(v, str):
if isinstance(v, float):
return v
elif isinstance(v, str):
return float(v)
elif isinstance(v, int):
return float(v)
Expand Down
2 changes: 1 addition & 1 deletion binquant
Submodule binquant updated from 6069fb to 9d8640
3 changes: 0 additions & 3 deletions entrypoint.sh

This file was deleted.

0 comments on commit 1ae69eb

Please sign in to comment.