2022-04-01 21:54:11 +02:00
|
|
|
FROM ubuntu:latest
|
2022-04-02 22:49:02 +02:00
|
|
|
RUN apt-get update && apt-get install -y locales && locale-gen en_US.UTF-8
|
2022-04-01 21:54:11 +02:00
|
|
|
|
2022-04-02 20:30:07 +02:00
|
|
|
# COPY ./kaggle.json /root/.kaggle/kaggle.json
|
2022-04-02 14:12:58 +02:00
|
|
|
|
2022-04-02 03:14:57 +02:00
|
|
|
WORKDIR /app
|
|
|
|
|
2022-04-02 14:12:58 +02:00
|
|
|
RUN apt-get update && apt-get install -y
|
|
|
|
RUN apt-get install -y python3
|
|
|
|
RUN apt-get install -y unzip
|
|
|
|
RUN apt-get install -y python3-pip
|
|
|
|
|
2022-04-02 23:02:39 +02:00
|
|
|
ENV PYTHONIOENCODING=utf-8
|
|
|
|
RUN apt-get install -y locales locales-all
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LANGUAGE en_US.UTF-8
|
|
|
|
|
2022-04-02 14:12:58 +02:00
|
|
|
RUN python3 -m pip --version
|
|
|
|
RUN python3 -m pip install kaggle
|
|
|
|
RUN python3 -m pip install pandas
|
|
|
|
RUN python3 -m pip freeze
|
2022-04-01 21:54:11 +02:00
|
|
|
|
2022-04-02 20:28:16 +02:00
|
|
|
ENV PATH="/root/.local/bin:${PATH}"
|
|
|
|
COPY . .
|
2022-04-02 14:12:58 +02:00
|
|
|
|
2022-04-02 20:28:16 +02:00
|
|
|
ARG KAGGLE_USERNAME
|
|
|
|
ARG KAGGLE_KEY
|
2022-04-02 14:12:58 +02:00
|
|
|
|
2022-04-02 22:26:34 +02:00
|
|
|
RUN chmod a+x ./stats-docker.sh
|
|
|
|
RUN chmod a+x ./script-stats.py
|
2022-04-01 23:23:48 +02:00
|
|
|
|
2022-04-01 23:05:45 +02:00
|
|
|
# RUN ./download.sh 117928
|
2022-04-02 20:28:16 +02:00
|
|
|
RUN python3 ./script-download.py
|