forked from higlass/higlass-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
68 lines (52 loc) · 1.6 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
62
63
64
65
66
67
68
FROM continuumio/miniconda3:4.6.14
ENV PATH /opt/conda/bin:$PATH
# tini: https://github.com/krallin/tini
ENV TINI_VERSION v0.18.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]
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 mkdir -p /software
RUN curl -L -o /software/goofys https://github.com/kahing/goofys/releases/latest/download/goofys
RUN chmod +x /software/goofys
RUN mkdir -p /data
ENV HTTPFS_HTTP_DIR /data/media/http
ENV HTTPFS_HTTPS_DIR /data/media/https
ENV GOOFYS_DIR /data/media/s3
WORKDIR /higlass-server
COPY environment.yml ./environment.yml
RUN conda env create -f ./environment.yml
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/start.sh ./
RUN chmod +x ./start.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"]