Skip to content

Commit 226cc54

Browse files
committed
Update Maven dependencies output in Dockerfile
1 parent b8fac88 commit 226cc54

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Dockerfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ RUN pip3 install --no-cache-dir -r requirements.txt && \
1010
# Install the python-trustyai bindings
1111
RUN python3 setup.py install
1212

13-
RUN mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:get \
14-
-DremoteRepositories=https://repository.sonatype.org/content/repositories/central \
15-
-Dartifact=org.kie.kogito:explainability-core:1.8.0.Final \
16-
-Dmaven.repo.local=dep -q && \
17-
wget -O ./dep/org/kie/kogito/explainability-core/1.8.0.Final/explainability-core-1.8.0.Final-tests.jar \
18-
https://repo1.maven.org/maven2/org/kie/kogito/explainability-core/1.8.0.Final/explainability-core-1.8.0.Final-tests.jar
19-
2013
USER root
2114

2215
ENV NB_USER jovyan
@@ -33,6 +26,15 @@ RUN chown -R $NB_UID $HOME
3326

3427
USER $NB_USER
3528

29+
WORKDIR $HOME
30+
31+
RUN mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:get \
32+
-DremoteRepositories=https://repository.sonatype.org/content/repositories/central \
33+
-Dartifact=org.kie.kogito:explainability-core:1.8.0.Final \
34+
-Dmaven.repo.local=dep -q && \
35+
wget -O ./dep/org/kie/kogito/explainability-core/1.8.0.Final/explainability-core-1.8.0.Final-tests.jar \
36+
https://repo1.maven.org/maven2/org/kie/kogito/explainability-core/1.8.0.Final/explainability-core-1.8.0.Final-tests.jar
37+
3638
# Launch the notebook server
3739
WORKDIR $HOME/examples
3840
CMD ["jupyter", "notebook", "--ip", "0.0.0.0"]

0 commit comments

Comments
 (0)