Zaktualizuj 'Dockerfile'

This commit is contained in:
Sebastian Wałęsa 2022-06-26 13:10:45 +02:00
parent 1f299362e2
commit 90dd91a788

View File

@ -20,7 +20,7 @@ RUN pip3 install sacred
RUN pip3 install numpy RUN pip3 install numpy
RUN pip3 install wheel --no-deps -U RUN pip3 install wheel --no-deps -U
RUN pip3 install GitPython RUN pip3 install GitPython
RUN pip3 install pymongo # RUN pip3 install pymongo
RUN pip3 install mlflow RUN pip3 install mlflow
@ -36,21 +36,22 @@ COPY ./skrypt.sh ./
COPY ./init.py ./ COPY ./init.py ./
# COPY ./understat.csv ./ # COPY ./understat.csv ./
COPY ./ml_pytorch_mlflow.py ./ COPY ./ml_pytorch_mlflow.py ./
COPY ./prediction-s444409.py ./
RUN pip3 install dvc # RUN pip3 install dvc
RUN pip3 install dvc[ssh] paramiko # RUN pip3 install dvc[ssh] paramiko
RUN apt-get remove openssh-client # RUN apt-get remove openssh-client
ENV TZ=Europe/Warsaw # ENV TZ=Europe/Warsaw
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt update # RUN apt update
RUN apt install -y tzdata # RUN apt install -y tzdata
RUN apt-get update # RUN apt-get update
RUN apt-get install -y openssh-server # RUN apt-get install -y openssh-server
RUN apt install -y sshpass openssh-client # RUN apt install -y sshpass openssh-client
RUN useradd -r -u 111 jenkins # RUN useradd -r -u 111 jenkins
# Domyślne polecenie, które zostanie uruchomione w kontenerze po jego starcie # Domyślne polecenie, które zostanie uruchomione w kontenerze po jego starcie
CMD ./skrypt.sh CMD ./skrypt.sh