ium_452627/Dockerfile_4

35 lines
897 B
Plaintext
Raw Normal View History

2023-05-13 17:33:01 +02:00
# 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 sacred
RUN python3 -m pip install pymongo
2023-05-13 17:35:35 +02:00
RUN python3 -m pip install dvc
2023-05-13 18:26:58 +02:00
RUN apt-get update && apt-get install -y git
2023-05-13 17:33:01 +02:00
COPY ./zadanie1.py ./
COPY ./Customers.csv ./
COPY ./test.py ./
2023-05-13 17:34:42 +02:00
COPY ./train.py ./
2023-05-13 17:33:01 +02:00
COPY ./cifar_net.pth ./
RUN chmod +r ./Customers.csv
RUN chmod +x ./zadanie1.py
RUN chmod +x ./train.py
2023-05-13 17:34:42 +02:00
RUN chmod +x ./test.py
2023-05-13 17:33:01 +02:00
2023-05-13 18:25:11 +02:00
2023-05-13 18:18:50 +02:00
RUN useradd -r -u 111 jenkins
2023-05-13 18:26:58 +02:00
#RUN export GIT_PYTHON_GIT_EXECUTABLE=/mingw64/bin/git
2023-05-13 17:33:01 +02:00
RUN dvc pull
RUN dvc repro