2023-04-04 19:46:06 +02:00
|
|
|
FROM ubuntu
|
|
|
|
|
2023-04-04 19:52:46 +02:00
|
|
|
RUN apt-get update && apt-get install -y python3 python3-pip unzip
|
2023-04-04 19:46:06 +02:00
|
|
|
|
2023-05-10 21:02:34 +02:00
|
|
|
RUN python3 -m pip install pandas numpy tensorflow imbalanced-learn sklearn sacred pymongo
|
2023-05-10 16:26:51 +02:00
|
|
|
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
|
|
|
RUN python3 train.py
|
|
|
|
|
2023-05-10 21:02:34 +02:00
|
|
|
CMD ["python3", "predictions.py"]
|