Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jochem Bijlard
fractalis
Commits
7fdf1766
Commit
7fdf1766
authored
Oct 27, 2017
by
Sascha Herzinger
Browse files
Initial Dockerfile
parent
a91d1990
Changes
2
Hide whitespace changes
Inline
Side-by-side
Dockerfile
0 → 100644
View file @
7fdf1766
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"]
fractalis/__init__.py
View file @
7fdf1766
"""Initialize Fractalis Flask app and configure it."""
import
logging.config
import
os
import
yaml
from
flask
import
Flask
from
flask_cors
import
CORS
...
...
@@ -75,5 +74,5 @@ log.info("Initialisation of service complete.")
if
__name__
==
'__main__'
:
log
.
info
(
"Starting builtin web server."
)
app
.
run
()
app
.
run
(
host
=
'0.0.0.0'
,
port
=
5000
)
log
.
info
(
"Builtin web server started."
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment