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 13:44:17 +02:00
RUN pip3 install -r ./requirements.txt
2022-04-03 13:43:30 +02:00
RUN pip3 install kaggle
2022-04-03 18:34:04 +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:34:04 +02:00
# RUN ./process_data.sh