add conda env
This commit is contained in:
parent
e7ca24c10e
commit
f4457b83c6
22
Dockerfile
22
Dockerfile
@ -2,22 +2,28 @@ 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 python3
|
||||
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 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 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
|
||||
|
||||
RUN conda env create -n myenv_from_file -f environment.yml
|
||||
|
||||
RUN conda activate myenv_from_file
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
9
environment.yml
Normal file
9
environment.yml
Normal file
@ -0,0 +1,9 @@
|
||||
name: tf
|
||||
channels:
|
||||
- conda-forge
|
||||
- defaults
|
||||
dependencies:
|
||||
- python=3.9
|
||||
- tensorflow
|
||||
- pandas
|
||||
- mlflow
|
Loading…
Reference in New Issue
Block a user