Skip to content
This repository has been archived by the owner on Dec 16, 2017. It is now read-only.

simplify the Dockerfile #183

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Dockerfile
LICENSE
circle.yml
README.md
.git
25 changes: 5 additions & 20 deletions docker/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,15 @@
#
# sudo docker run --rm -it technoskald/maltrieve

FROM ubuntu:14.04
FROM python:2.7
MAINTAINER Michael Boman <[email protected]>

USER root
RUN apt-get update && \
apt-get dist-upgrade -y
RUN apt-get install -y --no-install-recommends \
gcc \
git \
libpython2.7-stdlib \
python2.7 \
python2.7-dev \
python-pip \
python-setuptools
RUN rm -rf /var/lib/apt/lists/* && \
pip install --upgrade pip && \
groupadd -r maltrieve && \
RUN groupadd -r maltrieve && \
useradd -r -g maltrieve -d /home/maltrieve -s /sbin/nologin -c "Maltrieve User" maltrieve

WORKDIR /home
RUN git clone https://github.com/krmaxwell/maltrieve.git && \
cd maltrieve && \
git checkout dev && \
pip install -e . && \
WORKDIR /home/maltrieve
ADD . /home/maltrieve
RUN pip install -r requirements.txt && \
chown -R maltrieve:maltrieve /home/maltrieve

RUN mkdir /archive && \
Expand Down