2022-05-06 19:33:28 +02:00
# Obraz ubuntu latest
FROM ubuntu:latest
# Instalacja niezbędnych bibliotek
RUN apt update
RUN apt-get update
RUN apt install -y figlet
RUN export PATH = ”$PATH :/usr/local/bin/python”
RUN apt install python3-pip -y
RUN apt install unzip -y
RUN pip3 install kaggle
RUN pip3 install pandas
RUN pip3 install torch
2022-05-06 19:39:36 +02:00
RUN pip3 install torchvision
2022-05-06 19:37:49 +02:00
RUN pip3 install jovian
2022-05-06 19:42:32 +02:00
RUN pip3 install matplotlib
RUN pip3 install seaborn
2022-05-06 22:47:15 +02:00
RUN pip3 install sklearn
2022-05-08 19:44:08 +02:00
RUN pip3 install sacred
2022-05-08 19:46:08 +02:00
RUN pip3 install numpy
RUN pip3 install wheel --no-deps -U
RUN pip3 install GitPython
2022-06-26 13:10:45 +02:00
# RUN pip3 install pymongo
2022-05-15 11:50:27 +02:00
RUN pip3 install mlflow
2022-06-06 10:17:38 +02:00
2022-05-06 19:33:28 +02:00
# Przygotowanie kaggle
RUN mkdir ~/.kaggle/
RUN echo '{"username":"sebastianwalesa","key":"c879e3806be4cd6ade7aa10ea81d4cfe"}' > ~/.kaggle/kaggle.json
# Stwórzmy w kontenerze (jeśli nie istnieje) katalog /app i przejdźmy do niego (wszystkie kolejne polecenia RUN, CMD, ENTRYPOINT, COPY i ADD będą w nim wykonywane)
WORKDIR /app
# Skopiujmy nasz skrypt do katalogu /app w kontenerze
COPY ./skrypt.sh ./
COPY ./init.py ./
2022-06-06 10:19:40 +02:00
# COPY ./understat.csv ./
2022-05-15 12:36:45 +02:00
COPY ./ml_pytorch_mlflow.py ./
2022-06-26 13:10:45 +02:00
COPY ./prediction-s444409.py ./
2022-05-15 12:36:45 +02:00
2022-05-06 19:33:28 +02:00
2022-06-26 13:10:45 +02:00
# RUN pip3 install dvc
# RUN pip3 install dvc[ssh] paramiko
# RUN apt-get remove openssh-client
# ENV TZ=Europe/Warsaw
# RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
2022-06-07 17:53:58 +02:00
2022-06-26 13:10:45 +02:00
# RUN apt update
# RUN apt install -y tzdata
# RUN apt-get update
# RUN apt-get install -y openssh-server
2022-06-06 10:45:37 +02:00
2022-06-26 13:10:45 +02:00
# RUN apt install -y sshpass openssh-client
# RUN useradd -r -u 111 jenkins
2022-06-06 10:17:38 +02:00
2022-05-06 19:33:28 +02:00
# Domyślne polecenie, które zostanie uruchomione w kontenerze po jego starcie
2022-04-03 01:19:07 +02:00
CMD ./skrypt.sh