-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (35 loc) · 1.15 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# see
# * https://docs.docker.com/articles/dockerfile_best-practices/
# * http://phusion.github.io/baseimage-docker
# see https://github.com/phusion/baseimage-docker/blob/master/Changelog.md
FROM phusion/baseimage:0.9.15
MAINTAINER Oliver Bestwalter <[email protected]>
CMD ['/sbin/my_init']
RUN apt-get update
# Python build dependencies
RUN apt-get install -y \
libmemcached-dev \
zlib1g-dev \
libssl-dev \
python-dev \
build-essential \
libsqlite3-dev \
libbz2-dev \
libreadline6 \
libreadline6-dev \
# pyenv dependencies
git
### PYENV ###
ENV HOME /root
ENV PYENV_ROOT $HOME/.pyenv
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
# see https://github.com/yyuu/pyenv-installer
RUN curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
RUN pyenv install 2.7.8
RUN pyenv install 3.4.2
RUN pyenv global 3.4.2
RUN pyenv rehash
RUN echo 'export PYENV_ROOT="$HOME/.pyenv"' >> /root/.bash_profile
RUN echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> /etc/.bash_profile
RUN echo 'eval "$(pyenv init -)"' >> /etc/.bash_profile
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*