2023-04-04 23:25:25 +02:00
|
|
|
FROM ubuntu:latest
|
|
|
|
|
2023-04-05 04:22:36 +02:00
|
|
|
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
|
2023-05-12 23:33:56 +02:00
|
|
|
RUN pip3 install numpy
|
|
|
|
RUN pip3 install tensorflow
|
2023-04-05 04:22:36 +02:00
|
|
|
|
|
|
|
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 ./
|
|
|
|
|
2023-05-12 23:33:56 +02:00
|
|
|
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"]
|