resolve conflict
This commit is contained in:
commit
8360bd6a43
32
Dockerfile
32
Dockerfile
@ -1,17 +1,27 @@
|
||||
# Nasz obraz będzie dzidziczył z obrazu Ubuntu w wersji latest
|
||||
# Latest Ubuntu as starter
|
||||
FROM ubuntu:latest
|
||||
|
||||
# Instalujemy niezbędne zależności. Zwróć uwagę na flagę "-y" (assume yes)
|
||||
RUN pip install --user kaggle
|
||||
RUN pip install --user pandas
|
||||
RUN pip install --user scikit-learn
|
||||
RUN pip install --user matplotlib
|
||||
# Install required dependencies
|
||||
RUN apt update
|
||||
RUN export PATH=”$PATH:/usr/local/bin/python”
|
||||
RUN apt install python3-pip -y
|
||||
RUN apt install unzip -y
|
||||
RUN pip install kaggle
|
||||
RUN pip install pandas
|
||||
RUN pip install scikit-learn
|
||||
RUN pip install matplotlib
|
||||
RUN mkdir ~/.kaggle/
|
||||
RUN echo '{"username":"wirus006","key":"c3323e37d3f91a0914d0172ef3c7c30c"}' > ~/.kaggle/kaggle.json
|
||||
|
||||
# Stwórzmy w kontenerze (jeśli nie istnieje) katalog /app i przejdźmy do niego (wszystkie kolejne polecenia RUN, CMD, ENTRYPOINT, COPY i ADD będą w nim wykonywane)
|
||||
# Create app directory in image
|
||||
WORKDIR /app
|
||||
|
||||
# Skopiujmy nasz skrypt do katalogu /app w kontenerze
|
||||
COPY ./init.py ./app
|
||||
# Copy init dataset script to /app directory in image
|
||||
COPY ./init.py ./
|
||||
|
||||
# Domyślne polecenie, które zostanie uruchomione w kontenerze po jego starcie
|
||||
CMD python3 init.py
|
||||
# Download kaggle dataset
|
||||
RUN kaggle datasets download -d hakeem/atp-and-wta-tennis-data
|
||||
RUN unzip -o atp-and-wta-tennis-data.zip
|
||||
|
||||
# Script executed after docker run
|
||||
CMD python3 ./init.py
|
||||
|
54909
result.csv
Normal file
54909
result.csv
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user