ium_434788/Dockerfile

27 lines
941 B
Docker
Raw Normal View History

2021-04-08 18:42:00 +02:00
# 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
2021-04-08 18:42:00 +02:00
RUN pip3 install --user matplotlib
RUN pip3 install --user tensorflow
RUN pip3 install --user sacred
2021-04-08 18:42:00 +02:00
# 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
2021-05-13 14:08:32 +02:00
COPY ./Docker_todo.sh ./
COPY ./Zadanie_05_Docker.py ./
2021-04-08 18:42:00 +02:00
# Domyślne polecenie, które zostanie uruchomione w kontenerze po jego starcie
2021-05-13 14:08:32 +02:00
CMD ./Docker_todo.sh