ium_444498/Dockerfile

41 lines
885 B
Docker
Raw Permalink Normal View History

2022-03-31 20:15:29 +02:00
# Latest Ubuntu as starter
2022-03-28 11:23:11 +02:00
FROM ubuntu:latest
2022-03-31 20:15:29 +02:00
# Install required dependencies
2022-05-08 17:12:22 +02:00
RUN export PATH="$PATH:/root/.local/bin"
2022-03-31 20:15:29 +02:00
RUN apt update
2022-04-02 11:42:10 +02:00
RUN apt-get update
2022-05-09 17:07:25 +02:00
RUN apt install -y git
2022-04-02 11:42:10 +02:00
RUN apt install -y figlet
2022-03-31 20:15:29 +02:00
RUN export PATH=$PATH:/usr/local/bin/python”
RUN apt install python3-pip -y
RUN apt install unzip -y
2022-05-08 20:13:10 +02:00
RUN pip3 install numpy
2022-04-02 11:42:10 +02:00
RUN pip3 install kaggle
RUN pip3 install pandas
2022-05-08 20:13:10 +02:00
RUN pip3 install pillow
2022-04-02 11:42:10 +02:00
RUN pip3 install scikit-learn
RUN pip3 install matplotlib
2022-05-08 17:12:22 +02:00
RUN pip3 install torchvision
2022-05-09 17:07:25 +02:00
RUN pip3 install sacred
RUN pip3 install pymongo
RUN pip3 install dvc
RUN pip3 install 'dvc[ssh]' paramiko
2022-05-08 17:12:22 +02:00
# Args
ARG KAGGLE_USERNAME
ARG KAGGLE_KEY
ENV IS_DOCKER=True
2022-03-28 11:23:11 +02:00
2022-03-31 20:15:29 +02:00
# Create app directory in image
2022-03-28 11:23:11 +02:00
WORKDIR /app
2022-05-08 17:12:22 +02:00
# Copy everything from jenkins to /app
COPY . .
2022-03-31 20:15:29 +02:00
# Create user
RUN useradd -r -u 111 jenkins
2022-05-08 17:12:22 +02:00
# Create kaggle catalog for authenticate
2022-05-09 17:07:25 +02:00
RUN mkdir /.kaggle/ && chmod o+w /.kaggle