Dockerfile 506 Bytes
Newer Older
Sascha Herzinger's avatar
Sascha Herzinger committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM buildpack-deps:stretch

WORKDIR /app
COPY . /app

RUN apt-get update \
	&& apt-get install -y --no-install-recommends \
		r-base \
		python3.5 \
		python3.5-dev \
		python3-pip \
		python3-setuptools \
		rabbitmq-server \
		redis-server \
		r-bioc-limma
RUN pip3 install wheel
RUN pip3 install -e /app --default-timeout 180
RUN /etc/init.d/redis-server start
RUN /etc/init.d/rabbitmq-server start
RUN celery worker -A fractalis:celery -D -l info

EXPOSE 5000
CMD ["python3", "fractalis/__init__.py"]