Add dockerfiles/Dockerfile

This commit is contained in:
s464903 2024-05-11 12:43:49 +02:00
parent d5ccf6f013
commit 6738474bf0
1 changed files with 20 additions and 0 deletions

20
dockerfiles/Dockerfile Normal file
View File

@ -0,0 +1,20 @@
# Użyj obrazu Ubuntu jako bazowego
FROM ubuntu:latest
# Aktualizuj paczki i zainstaluj Python oraz pip
RUN apt update && \
apt install -y python3 python3-pip
# Zainstaluj potrzebne biblioteki Pythona
RUN pip3 install --user kaggle pandas tensorflow scikit-learn keras numpy opendatasets matplotlib
# Ustaw katalog roboczy
WORKDIR /app
# Skopiuj skrypty
COPY Biblioteka_DL_trenowanie.ipynb /app/
# Domyślne polecenie, które zostanie uruchomione w kontenerze po jego starcie
CMD ["python3", "Biblioteka_DL_trenowanie.ipynb"]
CMD ["sh", "-c", "sleep 5"]