forked from openvar/rest_variantValidator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (21 loc) · 812 Bytes
/
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
# Use an official Python runtime as a parent image
FROM python:3.8
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container's /app directory
COPY . /app
# Update apt-get
RUN apt-get update
# Install git
RUN apt-get -y install git
# Updrade pip
RUN pip install --upgrade pip
# Install any needed packages specified in requirements.txt
RUN pip install -r REQUIREMENTS.txt
# Install the tool
RUN pip install -e .
# Copy the config file into the container home diorectory
COPY configuration/docker.ini /root/.variantvalidator
# Start the application with gunicorn
# CMD gunicorn -b 0.0.0.0:8000 app --workers=3 --threads=5 --worker-class=gthread --chdir ./rest_VariantValidator/
CMD gunicorn -b 0.0.0.0:8000 app --threads=5 --chdir ./rest_VariantValidator/