forked from common-workflow-language/workflow-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (28 loc) · 1.62 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
FROM debian:9
# Install passenger
RUN apt-get update && \
apt-get install -y dirmngr gnupg && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 561F9B9CAC40B2F7 && \
apt-get install -y apt-transport-https ca-certificates && \
sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger stretch main > /etc/apt/sources.list.d/passenger.list'
RUN apt-get update && \
apt-get install -y --no-install-recommends passenger python-setuptools build-essential python-dev python-pip git && \
pip install pip==9.0.3
RUN apt-get install -y --no-install-recommends libcurl4-openssl-dev libssl1.0-dev
RUN apt-key adv --keyserver hkp://pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D || \
apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
RUN mkdir -p /etc/apt/sources.list.d && \
echo deb https://apt.dockerproject.org/repo debian-stretch main > /etc/apt/sources.list.d/docker.list && \
apt-get update && \
apt-get -yq --no-install-recommends install docker-engine=17.05.0~ce-0~debian-stretch && \
apt-get clean
ARG arvversion
COPY dist/arvados-cwl-runner-${arvversion}.tar.gz /root
RUN cd /root && pip install arvados-cwl-runner-${arvversion}.tar.gz
ARG version
COPY dist/wes_service-${version}-*.whl /root
RUN cd /root && pip install $(ls wes_service-${version}-*.whl)[arvados]
COPY passenger_wsgi.py /var/www/wes-server/passenger_wsgi.py
WORKDIR /var/www/wes-server/
RUN chown www-data:www-data -R /var/www && adduser www-data docker
CMD ["passenger", "start", "--environment=production", "--user=www-data"]