-
Notifications
You must be signed in to change notification settings - Fork 31
/
Dockerfile.ingest
49 lines (33 loc) · 1.28 KB
/
Dockerfile.ingest
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
41
42
43
44
45
46
47
48
FROM datajoint/djlab:py3.7-debian
USER root
RUN pip install --upgrade pip \
&& pip install --upgrade datajoint
RUN pip uninstall opencv-python -y
RUN conda install -c conda-forge opencv -y
RUN apt-get update \
&& apt-get -y install lsb-release gnupg2 \
&& echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& apt-get update \
&& apt-get -y install postgresql-client-13
RUN install -d -o dja -g anaconda -m 755 /src \
&& install -d -o dja -g anaconda -m 755 /src/IBL-pipeline \
&& install -d -o dja -g anaconda -m 755 /src/alyx \
&& chown -R dja:anaconda /var/log
USER dja:anaconda
COPY --chown=dja:anaconda ./apt_requirements.txt /tmp/apt_requirements.txt
ADD --chown=dja:anaconda . /src/IBL-pipeline
RUN pip install -e /src/IBL-pipeline
RUN \
/entrypoint.sh echo "Requirements updated..." && \
rm "${APT_REQUIREMENTS}"
RUN cd /src \
&& git clone https://github.com/cortex-lab/alyx.git \
&& cd alyx && pip install -r requirements.txt
# alyx runtime env
ENV PYTHONPATH=/src/alyx/alyx
ENV DJANGO_SETTINGS_MODULE=alyx.settings
EXPOSE 8000/tcp
COPY ingest-entrypoint.sh /
ENTRYPOINT ["/ingest-entrypoint.sh" ]
CMD [ "www" ]