ium_407409/Dockerfile

32 lines
647 B
Docker

FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y python3
RUN apt-get install -y python3-pip
RUN apt-get install -y unzip
RUN pip3 install pandas
RUN pip3 install kaggle
RUN pip3 install scikit-learn
RUN pip3 install numpy
RUN pip3 install tensorflow
RUN ln -s ~/.local/bin/kaggle /usr/bin/kaggle
ENV KAGGLE_USERNAME="grzegorzgapiski"
ENV KAGGLE_KEY=""
WORKDIR /app
COPY ./data_preparation.py ./
COPY ./2019-european-parliament-election-in-poland-data ./
COPY model_train.py /app/model_train.py
COPY model_test.py /app/model_test.py
CMD ./data_preparation.py
CMD ["python3", "model_train.py"]
CMD ["python3", "model_test.py"]