ium_444354/Dockerfile

35 lines
842 B
Docker
Raw Normal View History

2022-04-03 22:17:18 +02:00
FROM ubuntu:latest
# Install required dependencies
RUN apt update
RUN apt-get update
RUN apt install -y figlet
RUN export PATH=$PATH:/usr/local/bin/python”
RUN apt install python3-pip -y
RUN apt install unzip -y
2022-04-03 22:34:55 +02:00
RUN pip3 install --upgrade pip
RUN pip3 install --upgrade Pillow
2022-04-03 22:17:18 +02:00
RUN pip3 install pandas
RUN pip3 install scikit-learn
RUN pip3 install matplotlib
2022-04-17 19:33:40 +02:00
RUN pip3 install jovian
RUN pip3 install torch
RUN pip3 install seaborn
RUN pip3 install torchvision
# COPY ./script.sh ./
COPY ./runTrain.sh ./runTrain.sh
# RUN chmod a+x ./script.sh
2022-04-03 22:17:18 +02:00
# Create app directory in image
WORKDIR /app
2022-04-09 20:40:50 +02:00
COPY ./winequality-red.csv ./
2022-04-03 22:17:18 +02:00
# Copy init dataset script to /app directory in image
2022-04-17 19:33:40 +02:00
COPY ./pytorch/pytorch.py ./
2022-04-03 22:17:18 +02:00
# Script executed after docker run
2022-04-17 19:33:40 +02:00
# CMD python3 ./pytorch.py
COPY ./runTrain.sh ./
RUN chmod a+x ./runTrain.sh
RUN ./runTrain.sh