33 lines
822 B
Docker
Executable File
33 lines
822 B
Docker
Executable File
FROM ubuntu:latest
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install -y python3-pip
|
|
RUN pip3 install --upgrade pip
|
|
RUN pip3 install --upgrade Pillow
|
|
RUN pip3 install kaggle
|
|
RUN pip3 install pandas
|
|
RUN pip3 install matplotlib
|
|
RUN pip3 install sklearn
|
|
RUN apt-get install unzip
|
|
#RUN mkdir root/.kaggle
|
|
#RUN touch root/.kaggle/kaggle.json
|
|
#RUN echo "{\"username\":\"maciejczajka\",\"key\":\"d8f044ad2b96d32372e22f9054c02bb1\"}" >> root/.kaggle/kaggle.json
|
|
#RUN chmod 666 root/.kaggle
|
|
#RUN chmod 666 root/.kaggle/kaggle.json
|
|
|
|
#ENV KAGGLE_USERNAME=maciejczajka
|
|
#ENV KAGGLE_KEY=d8f044ad2b96d32372e22f9054c02bb1
|
|
ENV CUTOFF=100
|
|
ARG KAGGLE_USERNAME
|
|
ARG KAGGLE_KEY
|
|
ENV KAGGLE_USERNAME=${KAGGLE_USERNAME}
|
|
ENV KAGGLE_KEY=${KAGGLE_KEY}
|
|
|
|
WORKDIR /app
|
|
|
|
COPY download.sh .
|
|
COPY Zajecia_2/main.py .
|
|
|
|
RUN ./download.sh
|
|
#CMD ["python3", "./main.py"]
|