File tree Expand file tree Collapse file tree 7 files changed +41
-3
lines changed Expand file tree Collapse file tree 7 files changed +41
-3
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ FROM buildpack-deps
2
+
3
+ RUN apt-get update && apt-get install -y curl procps
4
+
5
+ # remove several traces of debian python
6
+ RUN apt-get purge -y python python-minimal python2.7-minimal
7
+
8
+ RUN mkdir /usr/src/python
9
+ WORKDIR /usr/src/python
10
+
11
+ ENV PYTHON_VERSION 3.3.5
12
+
13
+ RUN curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \
14
+ | tar -xJ --strip-components=1
15
+ RUN ./configure \
16
+ && make -j$(nproc) \
17
+ && make install \
18
+ && make clean
19
+
20
+ # make some useful symlinks that are expected to exist
21
+ RUN cd /usr/local/bin \
22
+ && ln -s easy_install-3.4 easy_install \
23
+ && ln -s idle3 idle \
24
+ && ln -s pip3 pip \
25
+ && ln -s pydoc3 pydoc \
26
+ && ln -s python3 python \
27
+ && ln -s python-config3 python-config
28
+
29
+ CMD ["python3" ]
Original file line number Diff line number Diff line change
1
+ FROM python:3.3.5
2
+
3
+ RUN mkdir -p /usr/src/app
4
+ WORKDIR /usr/src/app
5
+
6
+ ONBUILD COPY requirements.txt /usr/src/app/
7
+ ONBUILD RUN pip install -r requirements.txt
8
+
9
+ ONBUILD COPY . /usr/src/app
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 3
3
4
4
declare -A aliases
5
5
aliases=(
6
- [3]=' latest'
6
+ [3.4]=' 3 latest'
7
+ [2.7]=' 2'
7
8
)
8
9
9
10
cd " $( dirname " $( readlink -f " $BASH_SOURCE " ) " ) "
17
18
for version in " ${versions[@]} " ; do
18
19
commit=" $( git log -1 --format=' format:%H' " $version " ) "
19
20
fullVersion=" $( grep -m1 ' ENV PYTHON_VERSION ' " $version /Dockerfile" | cut -d' ' -f3) "
20
- majorVersion=" $( echo " $fullVersion " | cut -d. -f1-2) "
21
- versionAliases=( $fullVersion $majorVersion $version ${aliases[$version]} )
21
+ versionAliases=( $fullVersion $version ${aliases[$version]} )
22
22
23
23
echo
24
24
for va in " ${versionAliases[@]} " ; do
You can’t perform that action at this time.
0 commit comments