-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (23 loc) · 1018 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
FROM continuumio/miniconda3
WORKDIR /usr/src/app
COPY . /usr/src/app/
# Create the environment:
RUN apt-get --allow-releaseinfo-change update
RUN apt-get install -y curl
COPY environment.yml .
RUN conda config --set channel_priority strict
RUN conda env create -f environment.yml
# Make RUN commands use the new environment:
SHELL ["conda", "run", "-n", "eTransafeEnv", "/bin/bash", "-c"]
RUN pip install drf-spectacular
# Make sure the environment is activated:
RUN echo "Make sure strandardizer, django and rdkit is installed:"
RUN python -c "import chembl_structure_pipeline"
RUN python -c "import django"
RUN python -c "import rest_framework"
RUN python -c "import rdkit"
RUN python -c "import drf_spectacular"
ENV PYTHONUNBUFFERED=1
SHELL ["conda", "run", "--no-capture-output", "-n", "myenv", "/bin/bash", "-c"]
EXPOSE 8000
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "eTransafeEnv", "python", "manage.py", "runserver", "0.0.0.0:8000", "--settings=chemistry_services_project.settings.local"]