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 ./
|
2023-05-07 18:05:33 +02:00
|
|
|
#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
|
2023-05-07 18:05:33 +02:00
|
|
|
#RUN chmod +x ./zadanie1.py
|
2023-05-06 19:47:12 +02:00
|
|
|
RUN chmod +x ./train.py
|
2023-05-07 18:05:33 +02:00
|
|
|
#RUN chmod +x ./test.py
|
|
|
|
|
2023-05-07 18:09:15 +02:00
|
|
|
ARG epochs=5
|
2023-05-07 18:05:33 +02:00
|
|
|
RUN echo $epochs
|
2023-04-04 13:54:20 +02:00
|
|
|
|
2023-05-07 18:40:50 +02:00
|
|
|
RUN python3 ./train.py $epochs
|
2023-05-07 18:05:33 +02:00
|
|
|
#CMD python3 ./test.py
|