ium_452627/Dockerfile_4
2023-05-13 18:18:50 +02:00

35 lines
958 B
Plaintext

# Nasz obraz będzie dzidziczył 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
WORKDIR /app
RUN apt-get install -y python3
RUN apt-get install -y python3-pip
RUN python3 -m pip install pandas
RUN python3 -m pip install numpy
RUN python3 -m pip install torch
RUN python3 -m pip install torchvision
RUN python3 -m pip install GitPython
RUN python3 -m pip install sacred
RUN python3 -m pip install pymongo
RUN python3 -m pip install dvc
RUN python3 -m pip install gitpython
COPY ./zadanie1.py ./
COPY ./Customers.csv ./
COPY ./test.py ./
COPY ./train.py ./
COPY ./cifar_net.pth ./
RUN chmod +r ./Customers.csv
RUN chmod +x ./zadanie1.py
RUN chmod +x ./train.py
RUN chmod +x ./test.py
#RUN $GIT_PYTHON_GIT_EXECUTABLE=/usr/local/lib/python3.10/dist-packages/git/__init__.py
RUN useradd -r -u 111 jenkins
RUN dvc pull
RUN dvc repro