Skip to content

Commit a7ad7e0

Browse files
kcwinnershortjared
authored andcommitted
Fix pip3 (#16)
Fix pip3 TLS/SSL
1 parent ea1751d commit a7ad7e0

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

default/Dockerfile

+2-4
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,13 @@ 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
37+
RUN yum -y install zlib-devel openssl-devel
3838

3939
# Install Python 3.6
4040
RUN curl -O https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz
4141
RUN tar xJf Python-3.6.0.tar.xz
4242
WORKDIR /Python-3.6.0
43-
RUN ./configure
44-
RUN make
45-
RUN make install
43+
RUN ./configure --enable-optimizations && make && make install
4644
WORKDIR /
4745

4846
RUN curl -O https://bootstrap.pypa.io/get-pip.py

serverless/Dockerfile

+2-4
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,13 @@ RUN \
3838
RUN \
3939
yum install aws-cli -y
4040

41-
RUN yum -y install zlib-devel
41+
RUN yum -y install zlib-devel openssl-devel
4242

4343
# Install Python 3.6
4444
RUN curl -O https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz
4545
RUN tar xJf Python-3.6.0.tar.xz
4646
WORKDIR /Python-3.6.0
47-
RUN ./configure
48-
RUN make
49-
RUN make install
47+
RUN ./configure --enable-optimizations && make && make install
5048
WORKDIR /
5149

5250
RUN curl -O https://bootstrap.pypa.io/get-pip.py

0 commit comments

Comments
 (0)