File tree 1 file changed +11
-3
lines changed 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 12
12
COMMON_FOOTPRINT = """
13
13
USER root
14
14
15
- RUN pip install --no-cache-dir --upgrade setuptools==57.4.0 pip==21.2.4 wheel==0.37.0 numpy>=1.21
15
+ RUN pip install --no-cache-dir --upgrade setuptools==57.4.0 pip==21.3.1 wheel==0.37.0 numpy>=1.21
16
16
17
17
RUN mkdir -p /etc/monai/ \\
18
18
&& mkdir -p /opt/monai/ \\
34
34
&& rm -rf {executor_dir}/executor_pkg \\
35
35
&& chmod +x {executor_dir}/monai-exec
36
36
37
- ENV PATH=/home/ root/.local/bin:$PATH
37
+ ENV PATH=/root/.local/bin:$PATH
38
38
39
- RUN pip install --no-cache-dir -r {map_requirements_path}
39
+ RUN pip install --no-cache-dir --user -r {map_requirements_path}
40
+
41
+ # Override monai-deploy-app-sdk module
42
+ COPY ./monai-deploy-app-sdk /root/.local/lib/python3.8/site-packages/monai/deploy/
43
+ RUN echo "User site package location: $(python3 -m site --user-site)" \\
44
+ && [ "$(python3 -m site --user-site)" != "/root/.local/lib/python3.8/site-packages" ] \\
45
+ && mkdir -p $(python3 -m site --user-site)/monai/deploy \\
46
+ && cp -r /root/.local/lib/python3.8/site-packages/monai/deploy/* $(python3 -m site --user-site)/monai/deploy/ \\
47
+ || true
40
48
41
49
COPY ./map/app.json /etc/monai/
42
50
COPY ./map/pkg.json /etc/monai/
You can’t perform that action at this time.
0 commit comments