-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (28 loc) · 955 Bytes
/
Dockerfile
File metadata and controls
40 lines (28 loc) · 955 Bytes
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
37
38
39
40
FROM python:3.12.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 \
php
# 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
# Install LOVD Syntax checker
RUN python -m VariantValidator.bin.setup_lovd_syntax_checker
# 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/"]