dockerfile

This commit is contained in:
s451499 2024-04-24 03:14:08 +02:00
parent 3452520ae1
commit 1d4b599ab4
1 changed files with 14 additions and 0 deletions

14
ium_05/dockerfile Normal file
View File

@ -0,0 +1,14 @@
# Nasz obraz będzie dziedziczył 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 figlet python3 python3-pip
# Instalacja pakietów Pythona za pomocą PIP
RUN pip3 install pandas kaggle torch sklearn
# Dodajemy nasz skrypt Pythona do obrazu Docker
COPY learning.ipynb /learning.ipynb
# Ustawiamy domyślną komendę do uruchomienia naszego skryptu Pythona
CMD ["python3", "/learning.ipynb"]