Skip to content

Commit

Permalink
Add intial container build files
Browse files Browse the repository at this point in the history
  • Loading branch information
brews committed Dec 16, 2020
1 parent 6699e01 commit a424e04
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
deploy
.git*
.github
__pycache__
*.egg-info
.eggs
*pytest_cache*
.coverage
*.py[cxo]
.ipynb_checkpoints
__pytest__
.xprocess
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM continuumio/miniconda3:4.9.2

ENV PATH /opt/conda/bin:$PATH

# Copy only app requirements to cache dependencies
RUN mkdir /opt/dodola
COPY requirements.txt /opt/dodola/requirements.txt
RUN bash -c "conda install -c conda-forge --file /opt/dodola/requirements.txt \
&& conda clean --all"

COPY . /opt/dodola
RUN bash -c "pip install /opt/dodola"

0 comments on commit a424e04

Please sign in to comment.