forked from cyllab/CalcUS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCloud_dockerfile
More file actions
31 lines (22 loc) · 911 Bytes
/
Cloud_dockerfile
File metadata and controls
31 lines (22 loc) · 911 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
FROM python:3.9 AS calcus_user
ARG CALCUS_VERSION_HASH
ENV CALCUS_VERSION_HASH=${CALCUS_VERSION_HASH}
ENV PYTHONUNBUFFERED 1
ENV CALCUS_CLOUD True
ADD ./cloud_requirements.txt /calcus/cloud_requirements.txt
RUN pip install -r /calcus/cloud_requirements.txt
RUN apt update && apt install openbabel postgresql-client dos2unix -y
COPY calcus /calcus/calcus
COPY frontend /calcus/frontend
COPY docker /calcus/docker
COPY scripts /calcus/scripts
COPY bin /binaries/xtb
COPY manage.py /calcus/manage.py
WORKDIR /calcus/
ENV XTB4STDAHOME "/binaries/xtb"
ENV XTBPATH "/binaries/xtb/xtb:$XTB4STDAHOME"
ENV STDAHOME "/binaries/xtb"
ENV PATH=$PATH:$XTB4STDAHOME/xtb/bin:$XTB4STDAHOME
RUN python scripts/extract_xtb.py
RUN adduser --disabled-password --gecos '' calcus
CMD exec gunicorn calcus.wsgi:application --bind :$PORT --timeout 10 --workers $NUM_WORKERS --threads $NUM_THREADS --timeout $GUNICORN_TIMEOUT