-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathDockerfile
61 lines (47 loc) · 1.43 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM continuumio/miniconda3:4.6.14
RUN apt-get update && apt-get install -y \
gcc \
nginx-full \
supervisor \
unzip \
uwsgi-plugin-python3 \
zlib1g-dev \
libcurl4-openssl-dev \
g++ \
vim \
build-essential \
libssl-dev \
libpng-dev \
procps \
git \
fuse \
&& rm -rf /var/lib/apt/lists/*
RUN conda install --yes cython numpy==1.14.0
RUN conda install --yes --channel bioconda pysam htslib=1.3.2
RUN conda install --yes -c conda-forge uwsgi
RUN pip install simple-httpfs>=0.1.3
ENV HTTPFS_HTTP_DIR /data/media/http
ENV HTTPFS_HTTPS_DIR /data/media/https
ENV HTTPFS_FTP_DIR /data/media/ftp
WORKDIR /higlass-server
COPY requirements.txt ./
COPY requirements-dev.txt ./
RUN pip install -r requirements.txt
RUN pip install -r requirements-dev.txt
COPY docker-context/nginx.conf /etc/nginx/
COPY docker-context/hgserver_nginx.conf /etc/nginx/sites-enabled/
RUN rm /etc/nginx/sites-*/default && grep 'listen' /etc/nginx/sites-*/*
COPY docker-context/uwsgi_params ./
COPY docker-context/default-viewconf-fixture.xml ./
COPY docker-context/supervisord.conf ./
COPY docker-context/uwsgi.ini ./
COPY docker-context/httpfs.sh ./
EXPOSE 80
ENV HIGLASS_SERVER_BASE_DIR /data
VOLUME /data
VOLUME /tmp
ARG WORKERS=2
ENV WORKERS ${WORKERS}
RUN echo "WORKERS: $WORKERS"
COPY . .
CMD ["supervisord", "-n", "-c", "/higlass-server/supervisord.conf"]