This commit is contained in:
parent
c1a25e2c25
commit
7ea73e75f3
26
Dockerfile
26
Dockerfile
@ -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
30
Dockerfile Back
Normal 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
|
@ -1,4 +1,4 @@
|
||||
name: tf
|
||||
name: myenv
|
||||
channels:
|
||||
- conda-forge
|
||||
- defaults
|
||||
|
Loading…
Reference in New Issue
Block a user