From 581a750d6d555c61a0b6bd7e998386368e1d2cda Mon Sep 17 00:00:00 2001 From: frosforever Date: Mon, 23 May 2016 22:42:16 -0400 Subject: [PATCH] Use alpine and build docker image from source --- .dockerignore | 4 ++++ Dockerfile | 10 +++------- 2 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..36c72d4b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +.* +*.egg* +dist/ +build/ diff --git a/Dockerfile b/Dockerfile index 9db30a1a..38f390b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,7 @@ -FROM ubuntu:latest +FROM python:alpine -RUN apt-get update && apt-get install -y \ - groff \ - python-pip \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* +ADD . /saws/ -RUN pip install saws +RUN cd saws && python setup.py install && cd .. ENTRYPOINT ["saws"]