# Nasz obraz będzie dzidziczył z obrazu Ubuntu w wersji latest FROM ubuntu:latest # Instalujemy niezbędne zależności. Zwróć uwagę na flagę "-y" (assume yes) RUN apt update && apt install -y git RUN apt install -y python3-pip RUN apt install -y curl RUN pip3 install --user wget RUN pip3 install --user kaggle RUN pip3 install --user seaborn RUN pip3 install --user sklearn RUN pip3 install --user pandas RUN pip3 install --user numpy RUN pip3 install --user matplotlib RUN pip3 install --user tensorflow RUN pip3 install --user sacred # 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 ./test.sh ./ COPY ./Python_file.py ./ COPY ./Zadanie_5_Docker.py ./ # Domyślne polecenie, które zostanie uruchomione w kontenerze po jego starcie CMD ./test.sh