-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·39 lines (30 loc) · 1012 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
37
38
39
# qed_py3 is debian linux with buildpack-deps
# updated with all needed qed python dependencies
# Use 'version' ARG for grabbing correct qed_py3 base image.
# Defaults to 'latest' if not set.
ARG version=dev
FROM quanted/qed_py3:$version
# Install Python Dependencies
COPY . /src/
#RUN mkdir /src
#COPY docker_start.sh /src/docker_start.sh
# Overwrite the uWSGI config
COPY uwsgi.ini /etc/uwsgi/
# Copy the project code
WORKDIR /src
EXPOSE 8080
# Ensure "docker_start" is executable
RUN chmod 755 /src/docker_start.sh
RUN pip freeze | grep Django
# TESTING INSTALLS
#RUN pip install distributed
#RUN pip install bokeh==0.13
#RUN pip install matplotlib
RUN pip install django-cors-headers
RUN pip install rdkit
# Specific Docker-specific Django settings file (needed for collectstatic)
ENV DJANGO_SETTINGS_MODULE="settings_docker"
# Add project root to PYTHONPATH (needed to import custom Django settings)
ENV PYTHONPATH="/src"
# ENTRYPOINT ["sh /src/docker_start.sh"]
CMD ["sh", "/src/docker_start.sh"]