ium_452627/Dockerfile

31 lines
728 B
Docker
Raw Normal View History

2023-04-04 13:28:18 +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
2023-04-04 13:37:45 +02:00
WORKDIR /app
2023-04-04 13:39:20 +02:00
RUN apt-get install -y python3
2023-04-04 13:45:04 +02:00
RUN apt-get install -y python3-pip
2023-04-04 13:41:21 +02:00
RUN python3 -m pip install pandas
2023-05-06 19:47:12 +02:00
RUN python3 -m pip install numpy
RUN python3 -m pip install torch
2023-05-06 20:00:07 +02:00
RUN python3 -m pip install torchvision
2023-04-04 13:37:45 +02:00
2023-05-07 18:10:15 +02:00
COPY ./zadanie1.py ./
2023-04-04 14:02:54 +02:00
COPY ./Customers.csv ./
2023-05-06 19:47:12 +02:00
COPY ./train.py ./
#COPY ./test.py ./
#COPY ./cifar_net.pth ./
2023-04-04 13:37:45 +02:00
2023-04-04 14:02:54 +02:00
RUN chmod +r ./Customers.csv
#RUN chmod +x ./zadanie1.py
2023-05-06 19:47:12 +02:00
RUN chmod +x ./train.py
#RUN chmod +x ./test.py
2023-05-07 18:09:15 +02:00
ARG epochs=5
RUN echo $epochs
2023-04-04 13:54:20 +02:00
2023-05-07 18:40:50 +02:00
RUN python3 ./train.py $epochs
#CMD python3 ./test.py