2023-04-04 19:46:06 +02:00
|
|
|
FROM ubuntu
|
|
|
|
|
2023-05-10 23:33:25 +02:00
|
|
|
RUN apt-get update && apt-get install -y python3 python3-pip unzip make build-essential libssl-dev zlib1g-dev \
|
|
|
|
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
|
|
|
|
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git \
|
|
|
|
&& curl https://pyenv.run | bash \
|
|
|
|
&& echo 'export PATH="/root/.pyenv/bin:$PATH"' >> ~/.bashrc \
|
|
|
|
&& echo 'eval "$(pyenv init -)"' >> ~/.bashrc \
|
|
|
|
&& echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc \
|
|
|
|
&& /bin/bash -c "source ~/.bashrc" \
|
|
|
|
&& python3 -m pip install pandas numpy tensorflow imbalanced-learn sklearn sacred pymongo mlflow
|
2023-05-07 21:10:11 +02:00
|
|
|
|
2023-05-10 14:11:16 +02:00
|
|
|
COPY train.py /app/train.py
|
|
|
|
COPY predictions.py /app/predictions.py
|
|
|
|
COPY data.csv /app/data.csv
|
2023-05-07 21:10:11 +02:00
|
|
|
|
2023-05-10 14:11:16 +02:00
|
|
|
WORKDIR /app
|
2023-04-04 19:46:06 +02:00
|
|
|
|
2023-05-10 21:02:34 +02:00
|
|
|
RUN export SACRED_IGNORE_GIT=TRUE
|
2023-05-10 14:11:16 +02:00
|
|
|
|
2023-05-10 23:35:54 +02:00
|
|
|
RUN /bin/bash -c "source ~/.bashrc && pyenv install 3.11.3 && pyenv global 3.11.3 && mlflow run . -P epochs=10"
|
2023-05-10 23:33:25 +02:00
|
|
|
|
|
|
|
CMD ["python3", "predictions.py"]
|