conda
Some checks failed
s444417-training/pipeline/head There was a failure building this commit

This commit is contained in:
s444417 2022-05-21 13:11:10 +02:00
parent c1a25e2c25
commit 7ea73e75f3
3 changed files with 40 additions and 18 deletions

View File

@ -5,27 +5,19 @@ FROM tensorflow/tensorflow:latest
FROM continuumio/miniconda3:latest
RUN apt update && apt install -y
# RUN apt-get install -y python3
RUN apt-get install -y unzip
# RUN apt-get install -y python3-pip
RUN apt-get install unzip
RUN apt-get install wget
# RUN python3 -m pip install kaggle
# RUN python3 -m pip install pandas
# RUN pip3 install matplotlib
# RUN pip3 install sacred
# RUN pip3 install sacred
# RUN pip3 install pymongo
# RUN pip3 install mlflow
# RUN ln -s ~/.local/bin/kaggle /usr/bin/kaggle
WORKDIR /app
# Create the environment:
COPY environment.yml .
RUN conda env create -f environment.yml
# Make RUN commands use the new environment:
SHELL ["conda", "run", "-n", "myenv", "/bin/bash", "-c"]
# The code to run when container is started:
COPY . .
RUN ls -la
RUN conda env create -n myenv_from_file -f environment.yml
RUN conda init bash
RUN conda activate myenv_from_file
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "myenv", "python", "lab8/trainScript.py"]

30
Dockerfile Back Normal file
View File

@ -0,0 +1,30 @@
FROM ubuntu:latest
FROM tensorflow/tensorflow:latest
FROM continuumio/miniconda3:latest
RUN apt update && apt install -y
# RUN apt-get install -y python3
RUN apt-get install -y unzip
# RUN apt-get install -y python3-pip
RUN apt-get install unzip
RUN apt-get install wget
# RUN python3 -m pip install kaggle
# RUN python3 -m pip install pandas
# RUN pip3 install matplotlib
# RUN pip3 install sacred
# RUN pip3 install sacred
# RUN pip3 install pymongo
# RUN pip3 install mlflow
# RUN ln -s ~/.local/bin/kaggle /usr/bin/kaggle
WORKDIR /app
COPY . .
RUN ls -la
RUN conda env create -f environment.yml
RUN conda activate tf

View File

@ -1,4 +1,4 @@
name: tf
name: myenv
channels:
- conda-forge
- defaults