aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahiel Kasim <rahielkasim@gmail.com>2017-06-15 12:21:01 +0200
committerRahiel Kasim <rahielkasim@gmail.com>2017-06-15 12:21:01 +0200
commit86fbd5b4d43a3c90992878697929287bfff24e2f (patch)
treefba20ad23c30b0254af412b8306b84472c965e18
parent50b44ecf8e3bdc504d4385191babf9e1a529a423 (diff)
add Dockerfile
-rw-r--r--Dockerfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..6987eda
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,24 @@
+FROM debian:stretch-slim
+
+RUN apt-get update && apt-get install -y --no-install-recommends \
+ build-essential \
+ caffe-cpu \
+ git \
+ python3 \
+ python3-dev \
+ python3-numpy \
+ python3-pip \
+ python3-setuptools \
+ python3-wheel \
+ && rm -rf /var/lib/apt/lists/*
+
+WORKDIR /opt/open_nsfw--
+
+RUN git clone https://github.com/rahiel/open_nsfw--.git /opt/open_nsfw-- \
+ && git checkout 50b44ecf8e3bdc504d4385191babf9e1a529a423
+
+RUN pip3 install -r requirements.txt
+
+EXPOSE 8080
+
+ENTRYPOINT ["python3", "api.py"]