add conda env
Some checks failed
s444417-training/pipeline/head This commit looks good
s444417-evaluation/pipeline/head There was a failure building this commit

This commit is contained in:
s444417 2022-05-20 18:14:10 +02:00
parent e7ca24c10e
commit f4457b83c6
2 changed files with 23 additions and 8 deletions

View File

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

9
environment.yml Normal file
View File

@ -0,0 +1,9 @@
name: tf
channels:
- conda-forge
- defaults
dependencies:
- python=3.9
- tensorflow
- pandas
- mlflow