Skip to content

Commit 84403f0

Browse files
committed
Fixing Docker build
1 parent ec3444e commit 84403f0

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ RUN apt-get update \
1010
&& pip install --no-cache-dir . \
1111
&& apt-get purge -y --auto-remove gcc libc6-dev \
1212
&& rm -rf /var/lib/apt/lists/*
13+
RUN wq-update
14+
15+
CMD ["wq-brain"]

brain/update.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ def update_data():
77
"""Download and store datafields data."""
88
print("Updating datafields data...")
99
data_path = Path(__file__).parent / "tools/data"
10+
data_path.mkdir(parents=True, exist_ok=True)
1011

1112
for delay in [0, 1]:
1213
for universe in ["TOP3000", "TOP1000", "TOP500", "TOP200", "TOPSP500"]:

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def parse_requirements(file_name):
5454
entry_points={
5555
"console_scripts": [
5656
"wq-brain = brain.main:main",
57+
"wq-update = brain.update:update_data",
5758
],
5859
},
5960
)

0 commit comments

Comments
 (0)