You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/deployments/python-packages.md
+43Lines changed: 43 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -85,3 +85,46 @@ git+https://<personal access token>@github.com/<username>/<repo name>.git@<tag o
85
85
```
86
86
87
87
You can generate a personal access token by following [these steps](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line).
88
+
89
+
## Conda packages
90
+
91
+
You can install Conda packages by creating a custom Docker image that first installs Conda and then installs your Conda packages.
92
+
93
+
Customize the template Dockerfile below with your desired Conda packages and follow these [instructions](./system-packages.md) to build and push your image to a container registry and configure Cortex to use your custom image.
94
+
95
+
```dockerfile
96
+
# Dockerfile
97
+
98
+
FROM <BASE CORTEX IMAGE>
99
+
100
+
# remove system-wide packages from the base image
101
+
RUN pip freeze > req && for pkg in "$(cat req)"; do pip uninstall $pkg -y || true; done && rm req
102
+
103
+
# add conda to path
104
+
ENV PATH /opt/conda/bin:$PATH
105
+
106
+
# install conda, it also includes py3.6.9
107
+
RUN curl https://repo.anaconda.com/miniconda/Miniconda3-4.7.12.1-Linux-x86_64.sh --output ~/miniconda.sh && \
The Docker images used to deploy your models are listed below. Based on the Cortex Predictor and compute type specified in your API configuration, choose a Cortex image to use as the base for your custom Docker image.
0 commit comments