Created
November 27, 2020 13:16
-
-
Save amineHY/378d2137fab47fff01e1d58fdf05fad7 to your computer and use it in GitHub Desktop.
This is a Dockerfile for a python project using conda environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM continuumio/miniconda3 | |
LABEL Author, Amine HadjYoucef | |
ENV APP_HOME /app | |
WORKDIR $APP_HOME | |
COPY . $APP_HOME | |
#---------------- Prepare the envirennment | |
RUN conda update --name base conda &&\ | |
conda env create --file environment.yaml | |
SHELL ["conda", "run", "--name", "app", "/bin/bash", "-c"] | |
ENTRYPOINT ["conda", "run", "--name", "app", "python", "main.py"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment