forked from kivy/plyer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.trusty.py3
43 lines (37 loc) · 1.14 KB
/
Dockerfile.trusty.py3
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
FROM ubuntu:trusty-20180531
ENV APP_DIR=/app
RUN mkdir $APP_DIR
WORKDIR $APP_DIR
ENV PYTHONPATH=$PYTHONPATH:$(pwd)
# add https://launchpad.net/~deadsnakes for python 3.5
RUN echo 'deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu trusty main'\
>> /etc/apt/sources.list.d/pythons.list
RUN echo 'deb-src http://ppa.launchpad.net/deadsnakes/ppa/ubuntu trusty main'\
>> /etc/apt/sources.list.d/pythons.list
# install default packages
RUN apt-get update && \
apt-get -y --force-yes install \
python3-setuptools \
python3.5-dev \
openjdk-7-jdk \
lshw \
wget \
git \
&& apt-get -y autoremove \
&& apt-get -y clean
# install PIP
RUN wget https://bootstrap.pypa.io/get-pip.py -O get-pip3.py
RUN python3.5 -V && \
python3.5 get-pip3.py && \
rm get-pip3.py && \
python3.5 -m pip install --upgrade pip
# install dev packages
COPY devrequirements.txt .
RUN python3.5 -m pip install \
--upgrade \
--requirement devrequirements.txt
RUN python3.5 -m pip install \
https://github.com/kivy/pyjnius/zipball/master
COPY . $APP_DIR
RUN python3.5 -m pip install .
ENTRYPOINT ["/app/entrypoint.sh", "py3"]