forked from rodra-go/kedro-mlflow-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-zero
33 lines (25 loc) · 833 Bytes
/
Dockerfile-zero
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM python:3.8.5
LABEL MAINTAINER="Rodrigo Cunha <[email protected]>"
RUN apt-get update && \
apt-get upgrade -y
RUN apt-get install bash
RUN apt-get install sudo
RUN apt-get install python3-sphinx -y
ENV G_ID=1000 \
U_ID=1000 \
U_NAME=user01 \
PASS=pass
ENV PATH="/home/$U_NAME/.local/bin:${PATH}"
RUN addgroup --gid $G_ID $U_NAME
RUN adduser --uid $U_ID --ingroup $U_NAME --shell /bin/bash --disabled-password --gecos "" $U_NAME
RUN usermod -aG 100 $U_NAME
RUN usermod -aG sudo $U_NAME
RUN echo "$U_NAME:$PASS" | chpasswd
RUN /usr/local/bin/python -m pip install --upgrade pip setuptools
USER $U_NAME
WORKDIR /usr/src/config/
RUN pip install kedro[pandas.CSVDataSet,profilers]==0.16.6 kedro-viz==3.8.1 kedro-mlflow==0.4.1 --no-warn-script-location
WORKDIR /usr/src/code/
EXPOSE 8888
EXPOSE 4141
EXPOSE 5000