This repository has been archived by the owner on Feb 25, 2020. It is now read-only.
forked from aws-solutions/serverless-image-handler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48aaef3
commit d14a347
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
FROM amazonlinux:2017.03.1.20170812 | ||
MAINTAINER Levi Wilson <[email protected]> | ||
|
||
# lock yum to the same repository version | ||
RUN sed -i 's/releasever=.*/releasever=2017.03/g' /etc/yum.conf | ||
|
||
# base requirements | ||
RUN yum install yum-utils zip -y && \ | ||
yum-config-manager --enable epel && \ | ||
yum update -y && \ | ||
yum install git libpng-devel libcurl-devel gcc python-devel libjpeg-devel -y | ||
|
||
RUN yum install python27 python27-setuptools.noarch -y | ||
yum install git libpng-devel libcurl-devel gcc python27-devel libjpeg-devel -y | ||
|
||
# pip | ||
RUN alias sudo='env PATH=$PATH' && \ | ||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ | ||
python get-pip.py && rm get-pip.py && \ | ||
pip install --upgrade setuptools && \ | ||
pip install --upgrade virtualenv | ||
|
||
# pycurl | ||
RUN yum install -y gcc-c++ make python27-devel openssl-devel | ||
|
||
RUN yum install -y openssl-devel | ||
ENV PYCURL_SSL_LIBRARY=openssl |