Skip to content
Snippets Groups Projects
Commit 86ae3fef authored by Rivers, Travis (Contractor) Creighton's avatar Rivers, Travis (Contractor) Creighton
Browse files

add comments, clean up

parent 2adfbb35
No related branches found
No related tags found
No related merge requests found
......@@ -3,13 +3,14 @@ ARG FROM_IMAGE=usgs/centos:8
FROM ${FROM_IMAGE}
LABEL maintainer="Jeremy Fee <jmfee@usgs.gov>"
# install conda
# set environment variables
ENV PATH /conda/bin:$PATH
ENV LC_ALL='en_US.UTF-8'
ENV LANG='en_US.UTF-8'
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# install conda
RUN echo 'export PATH=/conda/bin:$PATH' > /etc/profile.d/conda.sh \
&& curl \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
......
#! /bin/bash
# Environment variable to determine whether to start webservice
export WEBSERVICE=${WEBSERVICE:-false}
# add geomagio to notebook path
export PYTHONPATH=/geomag-algorithms
......@@ -14,5 +15,6 @@ if [ $WEBSERVICE = 'false' ]; then
--port=8000
else
# run gunicorn server for web service
exec pipenv run gunicorn --bind 0.0.0.0:8000 -w 4 -k uvicorn.workers.UvicornWorker geomagio.api.app:app
fi
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