e1c24ae0bff9713940ee5b6cc2538182

This commit is contained in:
Norbert Walkowiak 2023-07-05 21:53:24 +02:00
parent 9a7b3b389e
commit 6f23ba2882

View File

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