fix: poprawiono dockerfile po aktualizacji bibliotek (przestał budowac sie projekt)

This commit is contained in:
Norbert Walkowiak 2023-07-05 22:15:32 +02:00
parent 5c174a7e6a
commit c92d0401bc
1 changed files with 14 additions and 12 deletions

View File

@ -1,30 +1,32 @@
# Korzystanie z najnowszej wersji ubuntu
FROM ubuntu:latest
RUN echo 'export PATH="/root/.local/bin:$PATH"' >> ~/.bashrc
#ENV PATH="/root/.local/bin:${PATH}"
# Instalujemy pakiety
RUN apt update && apt upgrade -y \
&& apt install -y python3.10 python3-pip curl
RUN pip install --upgrade pip
RUN pip install --user kaggle \
&& apt install -y python3.10 python3-pip curl \
&& pip install --user kaggle \
&& pip install --user pandas \
&& pip install --user tensorflow==2.12.0 \
&& pip install --user scikit-learn \
&& pip install --user matplotlib \
&& pip install --user keras \
&& pip install --user tensorflow \
&& pip install --user numpy \
&& pip install --user opencv-python \
&& pip install --user sacred \
&& pip install --user pymongo
RUN echo 'export PATH="/root/.local/bin:$PATH"' >> ~/.bashrc
# Dodajemy katalog /app w kontenerze
RUN mkdir /app
# Ustawiamy katalog roboczy
WORKDIR /app
# Kopiujemy zawartość
COPY . /app/
# uruchomienie skryptow
# RUN python3.10 ./DL-model.py
# CMD python3.10 ./DL-model.py
# Uruchomienie trenoowania modelu
#RUN python3.10 ./DL-model.py
#CMD python3.10 ./DL-model.py