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
|
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 unzip
|
RUN apt-get install -y unzip
|
||||||
# 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 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
|
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 . .
|
COPY . .
|
||||||
|
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "myenv", "python", "lab8/trainScript.py"]
|
||||||
RUN ls -la
|
|
||||||
|
|
||||||
RUN conda env create -n myenv_from_file -f environment.yml
|
|
||||||
RUN conda init bash
|
|
||||||
RUN conda activate myenv_from_file
|
|
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:
|
channels:
|
||||||
- conda-forge
|
- conda-forge
|
||||||
- defaults
|
- defaults
|
||||||
|
Loading…
Reference in New Issue
Block a user