Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Commit

Permalink
lock the yum repo down as well
Browse files Browse the repository at this point in the history
  • Loading branch information
leviwilson committed Sep 2, 2018
1 parent 48aaef3 commit d14a347
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
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

0 comments on commit d14a347

Please sign in to comment.