dockerfiles restructured

This commit is contained in:
wikbom 2023-05-10 17:03:15 +02:00
parent 200e254c5d
commit e156402275
4 changed files with 22 additions and 7 deletions

2
Jenkinsfile vendored
View File

@ -1,6 +1,6 @@
node {
checkout scm
def dockerimage = docker.build("titanic-image")
def dockerimage = docker.build("titanic-image", "./dockerfiles/docker-titanic")
dockerimage.inside {
stage('Preparation') {
properties([

View File

@ -1,6 +1,6 @@
node {
checkout scm
def dockerimage = docker.build("titanic-image")
def dockerimage = docker.build("titanic-image", "./dockerfiles/docker-train")
dockerimage.inside {
stage('Preparation') {
properties([

View File

@ -7,11 +7,7 @@ RUN apt install git -y
RUN pip install --user kaggle
RUN pip install --user pandas
RUN pip install --user numpy
RUN pip install --user torch
RUN pip install --user keras
RUN pip install --user tensorflow
RUN pip install --user scikit-learn
RUN ln -s ~/.local/bin/kaggle /usr/bin/kaggle
ENV PATH="$PATH:~/.local/bin/kaggle"

19
dockerfiles/docker-train Normal file
View File

@ -0,0 +1,19 @@
FROM ubuntu:latest
RUN apt-get update --fix-missing
RUN apt install python3-pip -y
RUN apt install unzip -y
RUN apt install git -y
RUN pip install --user pandas
RUN pip install --user torch
RUN pip install --user keras
RUN pip install --user tensorflow
RUN pip install --user scikit-learn
# RUN echo "alias kaggle='~/.local/bin/kaggle'" >> ~/.bashrc
COPY ./learning.py ./
# CMD ./script.sh 300
# CMD ./learning.pyRUN pip install --user numpy