ium_444463/Dockerfile

32 lines
751 B
Docker
Raw Normal View History

2022-04-02 14:15:19 +02:00
FROM ubuntu:latest
RUN apt update
# 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)
COPY ./requirements.txt .
2022-04-03 18:34:04 +02:00
RUN apt-get update
RUN apt-get install -y python3-pip
RUN pip3 install --upgrade pip
2022-04-03 18:39:38 +02:00
RUN pip3 install pandas
RUN pip3 install numpy
2022-04-03 21:19:31 +02:00
RUN pip3 install --user kaggle
2022-04-03 18:47:33 +02:00
RUN apt-get install zip unzip
2022-04-03 21:19:31 +02:00
2022-04-03 13:45:43 +02:00
ARG CUTOFF
ARG KAGGLE_USERNAME
ARG KAGGLE_KEY
ENV CUTOFF=${CUTOFF}
ENV KAGGLE_USERNAME=${KAGGLE_USERNAME}
2022-04-03 15:27:33 +02:00
ENV KAGGLE_KEY=${KAGGLE_KEY}
2022-04-03 18:34:04 +02:00
2022-04-03 15:27:33 +02:00
# Skopiujmy nasz skrypt do katalogu /app w kontenerze
2022-04-03 18:34:04 +02:00
RUN mkdir /data
WORKDIR /app
COPY ./process_data.sh .
COPY ./download_data_and_process.py .
COPY ./stats.py .
2022-04-03 15:27:33 +02:00
2022-04-03 18:47:33 +02:00
RUN ./process_data.sh