Skip to content

Commit 9ac94a5

Browse files
Merge pull request #1 from tpettinotti/awscli-2
aws-cli-2
2 parents 9386639 + 04b89ca commit 9ac94a5

1 file changed

Lines changed: 12 additions & 20 deletions

File tree

Dockerfile

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,17 @@ FROM zolweb/docker-dev:latest
33
RUN apt-get clean && apt-get update -qq && apt-get install -qqy --no-install-recommends \
44
build-essential \
55
zlib1g-dev \
6-
libncurses5-dev \
7-
libgdbm-dev \
8-
libnss3-dev \
96
libssl-dev \
10-
libreadline-dev \
7+
libncurses-dev \
118
libffi-dev \
12-
wget \
13-
apt-transport-https \
14-
zip \
15-
&& curl -O https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz \
16-
&& tar -xf Python-3.7.4.tar.xz \
17-
&& cd Python-3.7.4 \
18-
&& ./configure --enable-optimizations \
19-
&& make \
20-
&& make altinstall \
21-
&& mv ./python /usr/bin/python \
22-
&& curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
23-
&& /usr/bin/python get-pip.py \
24-
&& pip install awscli --upgrade --user \
25-
&& pip install awsebcli --upgrade --user \
26-
&& mv /root/.local/bin/aws /usr/bin/aws \
27-
&& mv /root/.local/bin/eb /usr/bin/eb
9+
libsqlite3-dev \
10+
libreadline-dev \
11+
libbz2-dev \
12+
&& git clone https://github.com/aws/aws-elastic-beanstalk-cli-setup.git \
13+
&& ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer
14+
15+
COPY --from=amazon/aws-cli:2.4.6 /usr/local/aws-cli/ /usr/local/aws-cli/
16+
17+
ENV PATH="/root/.pyenv/versions/3.7.2/bin:${PATH}"
18+
ENV PATH="/root/.ebcli-virtual-env/executables:${PATH}"
19+
ENV PATH="/usr/local/aws-cli/v2/current/bin/:${PATH}"

0 commit comments

Comments
 (0)