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

Initial Dockerfile

parent a91d1990
FROM buildpack-deps:stretch
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 \
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
CMD ["python3", "fractalis/"]
"""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 @@"Initialisation of service complete.") ...@@ -75,5 +74,5 @@"Initialisation of service complete.")
if __name__ == '__main__': if __name__ == '__main__':"Starting builtin web server.")"Starting builtin web server.")'', port=5000)"Builtin web server started.")"Builtin web server started.")
Supports Markdown
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