Skip to content

Commit

Permalink
Dockerize
Browse files Browse the repository at this point in the history
  • Loading branch information
Toilal committed Dec 1, 2015
1 parent 5c9003b commit 0981eba
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .dockerignore
@@ -0,0 +1,15 @@
__pycache__/
*.py[cod]
**/__pycache__/
**/*.py[cod]
.benchmarks/
.cache/
.eggs/
*.egg-info/
*.egg
.tox/
.coverage
.python-version
doc/
*.log
*.iml
27 changes: 27 additions & 0 deletions Dockerfile
@@ -0,0 +1,27 @@
FROM ubuntu

MAINTAINER Rémi Alvergnat <toilal.dev@gmail.com>

ENV PYENV_ROOT /root/.pyenv
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH

WORKDIR /root

COPY docker/base_dependencies.txt /root/base_dependencies.txt
RUN apt-get update && \
apt-get install -y $(cat /root/base_dependencies.txt) && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/base_dependencies.txt /etc/dpkg/dpkg.cfg.d/02apt-speedup

ENV PYTHONDONTWRITEBYTECODE true
RUN git clone https://github.com/yyuu/pyenv.git /root/.pyenv
RUN pyenv install 3.4.3 && pyenv global 3.4.3

COPY / /root/guessit/

WORKDIR /root/guessit/

RUN pip install -e .

ENTRYPOINT ["guessit"]

2 changes: 2 additions & 0 deletions MANIFEST.in
Expand Up @@ -5,5 +5,7 @@ include *.rst
include *.ini
include *.cfg
include *.txt
recursive-include docker *
include Dockerfile
include .coveragerc
include pylintrc
13 changes: 13 additions & 0 deletions docker/base_dependencies.txt
@@ -0,0 +1,13 @@
build-essential
curl
git-core
libbz2-dev
libreadline-dev
libsqlite3-dev
libssl-dev
llvm
make
python-software-properties
software-properties-common
wget
zlib1g-dev

0 comments on commit 0981eba

Please sign in to comment.