-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (17 loc) · 851 Bytes
/
Dockerfile
File metadata and controls
24 lines (17 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM tercen/runtime-python39:0.1.0
COPY . /operator
WORKDIR /operator
ENV PYTHONPATH "${PYTHONPATH}:~/.pyenv/versions/3.9.0/bin/python3"
# Install scimap first (this will install compatible numpy, pandas, scipy, etc.)
RUN python3 -m pip install --no-cache-dir scimap>=2.0.0
# Install tercen client's direct dependencies (without their sub-dependencies)
RUN python3 -m pip install --no-cache-dir \
git+https://github.com/tercen/pytson@1.8.10 \
polars \
pytz \
python-dateutil
# Now install tercen client with --no-deps (uses already-installed packages)
RUN python3 -m pip install --no-cache-dir --no-deps git+https://github.com/tercen/tercen_python_client@0.12.12
ENV TERCEN_SERVICE_URI https://tercen.com
ENTRYPOINT ["python3", "main.py"]
CMD ["--taskId", "someid", "--serviceUri", "https://tercen.com", "--token", "sometoken"]