2023-05-10 23:39:09 +02:00
|
|
|
FROM ubuntu:20.04
|
2023-04-04 19:46:06 +02:00
|
|
|
|
2023-05-10 23:39:09 +02:00
|
|
|
RUN apt-get update && apt-get install -y curl git libssl-dev make build-essential libbz2-dev \
|
2023-05-10 23:33:25 +02:00
|
|
|
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
|
2023-05-10 23:39:09 +02:00
|
|
|
xz-utils tk-dev libffi-dev liblzma-dev python3-openssl git
|
|
|
|
|
|
|
|
RUN curl https://pyenv.run | bash
|
|
|
|
|
|
|
|
ENV HOME /root
|
|
|
|
ENV PYENV_ROOT $HOME/.pyenv
|
|
|
|
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
|
|
|
|
ENV PYTHON_VERSION 3.11.3
|
|
|
|
|
|
|
|
RUN pyenv install $PYTHON_VERSION
|
|
|
|
RUN pyenv global $PYTHON_VERSION
|
|
|
|
|
|
|
|
RUN python --version
|
|
|
|
|
|
|
|
RUN apt-get install -y python3-pip unzip
|
|
|
|
|
|
|
|
RUN python3 -m pip install pandas numpy tensorflow imbalanced-learn sklearn sacred pymongo mlflow
|
|
|
|
RUN apt-get install -y git
|
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:39:09 +02:00
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
|
|
|
|
RUN source ~/.bashrc && mlflow run . -P epochs=10
|
2023-05-10 23:33:25 +02:00
|
|
|
|
|
|
|
CMD ["python3", "predictions.py"]
|