-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
34 lines (30 loc) · 1.08 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM python:3.7.10-stretch
#===============================#
# Docker Image Configuration #
#===============================#
LABEL org.opencontainers.image.source='https://github.com/eipm/stork-a' \
vendor='Englander Institute for Precision Medicine' \
description='STORK-A' \
maintainer='[email protected]' \
base_image='python' \
base_image_version='3.7.10-stretch'
ENV APP_NAME='stork-a' \
TZ='US/Eastern'
#===================================#
# Install Prerequisites #
#===================================#
COPY requirements.txt /${APP_NAME}/requirements.txt
RUN pip install -r /${APP_NAME}/requirements.txt
#===================================#
# Copy Files and set work directory #
#===================================#
COPY src /${APP_NAME}/src/
WORKDIR /${APP_NAME}
#===================================#
# Startup #
#===================================#
EXPOSE 80
VOLUME uploads
HEALTHCHECK --interval=30s --timeout=30s --retries=3 \
CMD curl -f -k http://0.0.0.0/api/healthcheck || exit 1
CMD python3 /${APP_NAME}/src/main.py