Source:
https://haveagreatdata.com/posts/step-by-step-docker-image-for-data-science-projects/
1. Create project as follows
.
├── Dockerfile
├── environment.yml
└── src
└── hello.py
2. Dump yml environment file
conda env export > environment.yml
3. Create Dockerfile as follows
FROM continuumio/miniconda3:4.8.2
COPY environment.yml /opt/env/
RUN conda env update -n base -f /opt/env/environment.yml \
&& conda clean -afy
4. Run Dockerfile
docker build -t stk:latest .
No comments:
Post a Comment