forked from rosette-api/python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (46 loc) · 1.54 KB
/
Dockerfile
File metadata and controls
54 lines (46 loc) · 1.54 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM ubuntu:14.04
MAINTAINER Fiona Hasanaj
ENV DEBIAN_FRONTEND noninteractive
RUN locale-gen en_US.UTF-8 && /usr/sbin/update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8
# proper init to handle signal propagation and zombie reaping
ADD https://github.com/krallin/tini/releases/download/v0.8.4/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]
RUN apt-get update && \
apt-get -y install \
wget \
curl \
libssl-dev \
libffi-dev \
python-pip \
python-software-properties \
software-properties-common && \
add-apt-repository -y ppa:fkrull/deadsnakes && \
apt-get update && \
apt-get -y install \
python2.6 \
python2.7 \
python3.3 \
python3.4 \
python3.5 \
git\
pypy && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mkdir /install && \
wget -O /install/pypy3-2.4-linux_x86_64-portable.tar.bz2 \
"https://bitbucket.org/squeaky/portable-pypy/downloads/pypy3-2.4-linux_x86_64-portable.tar.bz2" && \
tar jxf /install/pypy3-*.tar.bz2 -C /install && \
rm /install/pypy3-*.tar.bz2 && \
ln -s /install/pypy3-*/bin/pypy3 /usr/local/bin/pypy3
RUN pip install -U pip && pip install tox
RUN pip install --upgrade autopep8
# copy over the necessary files
COPY run_python.sh /python-dev/run_python.sh
RUN chmod 755 /python-dev/run_python.sh
COPY tox.ini /python-dev/tox.ini
WORKDIR /python-dev
# allow interactive bash inside docker container
CMD ./run_python.sh
VOLUME ["/source"]