FROM python:3.7 WORKDIR / ARG KAGGLE_USERNAME ARG KAGGLE_KEY ENV KAGGLE_USERNAME=${KAGGLE_USERNAME} ENV KAGGLE_KEY=${KAGGLE_KEY} RUN pip install --user kaggle RUN pip install --user pandas RUN pip install --user sklearn COPY KaggleV2-May-2016.csv ./ COPY create_data.py ./ COPY stats_data.py ./ CMD ["python", "create_data.py"] CMD ["python", "stats_data.py"]