Skip to content

Instantly share code, notes, and snippets.

@amineHY
Created November 27, 2020 13:16
Show Gist options
  • Save amineHY/378d2137fab47fff01e1d58fdf05fad7 to your computer and use it in GitHub Desktop.
Save amineHY/378d2137fab47fff01e1d58fdf05fad7 to your computer and use it in GitHub Desktop.
This is a Dockerfile for a python project using conda environment
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