File tree Expand file tree Collapse file tree 3 files changed +51
-0
lines changed Expand file tree Collapse file tree 3 files changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ # ignore Dockerfile and .dockerignore
2
+ Dockerfile
3
+ .dockerignore
4
+
5
+ # ignore potentially sensitive credentials files
6
+ conf /** /* credentials *
7
+
8
+ # ignore all local configuration
9
+ conf /local
10
+ ! conf /local /.gitkeep
11
+
12
+ # ignore everything in the following folders
13
+ data
14
+ logs
15
+ notebooks
16
+ references
17
+ results
18
+
19
+ # except the following
20
+ ! logs /.gitkeep
21
+ ! notebooks /.gitkeep
22
+ ! references /.gitkeep
23
+ ! results /.gitkeep
Original file line number Diff line number Diff line change
1
+ ARG BASE_IMAGE=python:3.9-slim
2
+ FROM $BASE_IMAGE as runtime-environment
3
+
4
+ # install project requirements
5
+ COPY docker-requirements.txt /tmp/requirements.txt
6
+ RUN pip install --no-cache -r /tmp/requirements.txt && rm -f /tmp/requirements.txt
7
+
8
+ # add kedro user
9
+ ARG KEDRO_UID=999
10
+ ARG KEDRO_GID=0
11
+ RUN groupadd -f -g ${KEDRO_GID} kedro_group && \
12
+ useradd -m -d /home/kedro_docker -s /bin/bash -g ${KEDRO_GID} -u ${KEDRO_UID} kedro_docker
13
+
14
+ WORKDIR /home/kedro_docker
15
+ USER kedro_docker
16
+
17
+ FROM runtime-environment
18
+
19
+ # copy the whole project except what is in .dockerignore
20
+ ARG KEDRO_UID=999
21
+ ARG KEDRO_GID=0
22
+ COPY --chown=${KEDRO_UID}:${KEDRO_GID} . .
23
+
24
+ EXPOSE 8888
25
+
26
+ CMD ["kedro" , "run" ]
Original file line number Diff line number Diff line change 1
1
# Kedro dependencies
2
2
kedro~=0.19.3
3
+ kedro-viz>=6.7.0
4
+ kedro-datasets>=1.0
3
5
4
6
# Data science
5
7
scikit-learn
You can’t perform that action at this time.
0 commit comments