forked from openvar/rest_variantValidator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (25 loc) · 850 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
32
33
34
35
36
FROM python:3.11
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container's /app directory
COPY . /app
# Create logging directory
RUN mkdir /usr/local/share/logs
# Update apt-get
RUN apt update
# Install apt managed sofware
RUN apt -y install git \
postgresql-client \
sqlite3
# Manage git buffer
RUN git config http.postBuffer 500000000
# Updrade pip
RUN pip install --upgrade pip
# Install the tool
RUN pip install -e .
# Copy the config file into the container home directory
COPY configuration/docker.ini /root/.variantvalidator
# Define the entrypoint as an empty command
ENTRYPOINT []
# Start the container with CMD and set Gunicorn timeout to 600 seconds
CMD ["gunicorn", "-b", "0.0.0.0:8000", "--timeout", "600", "app", "--threads=5", "--chdir", "./rest_VariantValidator/"]