-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (18 loc) · 987 Bytes
/
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
FROM ubuntu:20.04
MAINTAINER Your Name "[email protected]"
WORKDIR /app
ENV MYORIGIN=lo.gic.li
ENV MYPORT=5006
RUN apt-get update -y && \
DEBIAN_FRONTEND='noninteractive' apt-get install -y python3-numpy python3-scipy python3-pip python3-jinja2 python3-markupsafe python3-dateutil python3-tornado python3-typing-extensions python3-matplotlib python3-distutils net-tools iputils-ping telnet
RUN pip3 install bokeh
COPY ./viraly.py /app
COPY ./web/viral.py /app
COPY ./web/viral2.py /app
COPY ./web/viral-long.py /app
COPY ./web/viral-staging.py /app
COPY ./web/viral-marketing.py /app
COPY ./web/viral-simple.py /app
EXPOSE $MYPORT
# docker run -e "MYORIGIN=yourhostname.net" -v -d -p 5006:5006 viraly
CMD bokeh serve --port $MYPORT --disable-index --allow-websocket-origin=localhost:$MYPORT --allow-websocket-origin=$MYORIGIN viral.py viral2.py viral-long.py viral-staging.py viral-marketing.py viral-simple.py