Skip to content

Commit ea1751d

Browse files
authored
Merge pull request #15 from trek10inc/add_python_36
Adding python 36 and updating serverless version in the other image
2 parents ab17d29 + eded753 commit ea1751d

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

default/Dockerfile

+11
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,16 @@ RUN ln -s /usr/local/bin/node /usr/local/bin/nodejs
3434
RUN \
3535
yum install aws-cli -y
3636

37+
RUN yum -y install zlib-devel
38+
39+
# Install Python 3.6
40+
RUN curl -O https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz
41+
RUN tar xJf Python-3.6.0.tar.xz
42+
WORKDIR /Python-3.6.0
43+
RUN ./configure
44+
RUN make
45+
RUN make install
46+
WORKDIR /
47+
3748
RUN curl -O https://bootstrap.pypa.io/get-pip.py
3849
RUN python get-pip.py

serverless/Dockerfile

+12-1
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,22 @@ RUN ln -s /usr/local/bin/node /usr/local/bin/nodejs
3232

3333
############# Install serverless dependencies
3434
RUN \
35-
npm install -g serverless@1.14.0
35+
npm install -g serverless@1.23.0
3636

3737
# Install aws dependencies
3838
RUN \
3939
yum install aws-cli -y
4040

41+
RUN yum -y install zlib-devel
42+
43+
# Install Python 3.6
44+
RUN curl -O https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz
45+
RUN tar xJf Python-3.6.0.tar.xz
46+
WORKDIR /Python-3.6.0
47+
RUN ./configure
48+
RUN make
49+
RUN make install
50+
WORKDIR /
51+
4152
RUN curl -O https://bootstrap.pypa.io/get-pip.py
4253
RUN python get-pip.py

0 commit comments

Comments
 (0)