Skip to content
Snippets Groups Projects
Commit 6d7d279b authored by Jeremy M Fee's avatar Jeremy M Fee
Browse files

Add development container target

parent 51629b22
No related branches found
No related tags found
1 merge request!18Add development container target
ARG FROM_IMAGE=usgs/centos:latest ARG FROM_IMAGE=usgs/centos:latest
FROM ${FROM_IMAGE} FROM ${FROM_IMAGE} as conda
LABEL maintainer="Jeremy Fee <jmfee@usgs.gov>" LABEL maintainer="Jeremy Fee <jmfee@usgs.gov>"
ARG GIT_BRANCH_NAME=none ARG GIT_BRANCH_NAME=none
...@@ -35,6 +35,29 @@ RUN conda config --set ssl_verify $SSL_CERT_FILE \ ...@@ -35,6 +35,29 @@ RUN conda config --set ssl_verify $SSL_CERT_FILE \
&& yum install -y which \ && yum install -y which \
&& yum clean all && yum clean all
################################################################################
## Development image
# build by running
# docker build -t geomag-algorithms-development --target development .
FROM conda as development
# install dependencies via pipenv
WORKDIR /geomag-algorithms
COPY Pipfile /geomag-algorithms
RUN pipenv --site-packages install --dev --skip-lock
# copy library (ignores set in .dockerignore)
COPY . /geomag-algorithms
################################################################################
## Production image
FROM conda
RUN useradd \ RUN useradd \
-c 'Docker image user' \ -c 'Docker image user' \
-m \ -m \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment