Docker file for remote usage!
This commit is contained in:
parent
992f34773a
commit
19de76cbd6
|
@ -0,0 +1,4 @@
|
|||
FROM ubuntu:18.04
|
||||
|
||||
WORKDIR /data
|
||||
RUN apt-get update && apt-get install -y python3-flask python3-elasticsearch
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
docker build -t textnavi:ubuntu .
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ "$1" == "" ]] ; then
|
||||
CMD="python3 ./webapp.py"
|
||||
else
|
||||
CMD=/bin/bash
|
||||
fi
|
||||
|
||||
OPT="-it --rm -v $PWD/../:/data/"
|
||||
docker run $OPT --expose=5000 -p 5000:5000 -h textnavi textnavi:ubuntu $CMD
|
Loading…
Reference in New Issue