Skip to content

Commit b8fac88

Browse files
committed
Add Dockerfile
1 parent be6020b commit b8fac88

File tree

5 files changed

+52
-1
lines changed

5 files changed

+52
-1
lines changed

.dockerignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*.log
2+
__pycache__
3+
.pytest_cache
4+
.pynb_checkpoints
5+
.Rproj.user
6+
.vscode
7+
.idea
8+
.mypy_cache
9+
build
10+
dist
11+
trustyai.egg-info
12+
*.pyc

Dockerfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
FROM openjdk:11.0.11-jdk
2+
3+
RUN apt-get update
4+
RUN apt-get install -y python3-pip cmake maven
5+
6+
COPY . .
7+
RUN pip3 install --no-cache-dir -r requirements.txt && \
8+
pip3 install --no-cache-dir -r requirements-dev.txt
9+
10+
# Install the python-trustyai bindings
11+
RUN python3 setup.py install
12+
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+
20+
USER root
21+
22+
ENV NB_USER jovyan
23+
ENV NB_UID 1000
24+
ENV HOME /home/$NB_USER
25+
26+
RUN adduser --disabled-password \
27+
--gecos "Default user" \
28+
--uid $NB_UID \
29+
$NB_USER
30+
31+
COPY . $HOME
32+
RUN chown -R $NB_UID $HOME
33+
34+
USER $NB_USER
35+
36+
# Launch the notebook server
37+
WORKDIR $HOME/examples
38+
CMD ["jupyter", "notebook", "--ip", "0.0.0.0"]
File renamed without changes.
2.62 MB
Binary file not shown.

requirements-dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
black
1+
black==21.6b0
22
joblib
3+
jupyter
34
pandas
45
scikit-learn
56
pylint

0 commit comments

Comments
 (0)