Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Commit

Permalink
Use Amazon Linux packages in builder, not pyenv
Browse files Browse the repository at this point in the history
Fixes #15.
  • Loading branch information
iliana committed Oct 25, 2017
1 parent 3d02dec commit bb95642
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
FROM amazonlinux:latest
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
RUN yum install -y bzip2-devel gcc gcc-c++ git openssl-devel readline-devel sqlite-devel zip && yum clean all
RUN yum install -y bzip2-devel gcc gcc-c++ git openssl-devel python27-devel python36-devel readline-devel sqlite-devel zip \
&& yum clean all
ENV PYENV_ROOT=/usr/local/pyenv PYTHON_CONFIGURE_OPTS="OPT=\"-fPIC\""
RUN git clone https://github.com/pyenv/pyenv.git $PYENV_ROOT
RUN /usr/local/pyenv/bin/pyenv install 2.7.13
RUN /usr/local/pyenv/bin/pyenv install 3.6.1
RUN /usr/local/pyenv/bin/pyenv global 3.6.1 2.7.13
ADD build.sh /usr/local/bin/
VOLUME ["/code"]
WORKDIR /code
Expand Down

0 comments on commit bb95642

Please sign in to comment.