Commit 7fdf1766 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

Initial Dockerfile

parent a91d1990
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"]
"""Initialize Fractalis Flask app and configure it.""" """Initialize Fractalis Flask app and configure it."""
import logging.config import logging.config
import os
import yaml import yaml
from flask import Flask from flask import Flask
from flask_cors import CORS from flask_cors import CORS
...@@ -75,5 +74,5 @@ log.info("Initialisation of service complete.") ...@@ -75,5 +74,5 @@ log.info("Initialisation of service complete.")
if __name__ == '__main__': if __name__ == '__main__':
log.info("Starting builtin web server.") log.info("Starting builtin web server.")
app.run() app.run(host='0.0.0.0', port=5000)
log.info("Builtin web server started.") log.info("Builtin web server started.")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment