Skip to content

Commit

Permalink
Merge pull request #47 from cancervariants/docker
Browse files Browse the repository at this point in the history
Adds Dockerfile
  • Loading branch information
korikuzma authored Jun 30, 2021
2 parents 5aba9e2 + 2ee4748 commit 5b7aec3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# A simple container for gene-service.
# Runs service on port 80.
# Healthchecks service up every 5m.

FROM python:3.7
RUN pip install pipenv uvicorn[standard]
COPY . /app
WORKDIR /app
RUN if [ ! -f "Pipfile.lock" ] ; then pipenv lock ; else echo Pipfile.lock exists ; fi
RUN pipenv sync
EXPOSE 80
RUN apt update ; apt install -y rsync
HEALTHCHECK --interval=5m --timeout=3s \
CMD curl -f http://localhost/gene || exit 1

CMD pipenv run uvicorn gene.main:app --port 80 --host 0.0.0.0

0 comments on commit 5b7aec3

Please sign in to comment.