File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,8 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C3173AA6 A
75
75
google-chrome-stable \
76
76
libpq-dev \
77
77
nginx \
78
- python-dev \
78
+ python3-dev \
79
+ python3-pip \
79
80
ghostscript \
80
81
poppler-utils \
81
82
tesseract-ocr && \
@@ -86,11 +87,7 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C3173AA6 A
86
87
gem install bundler && \
87
88
\
88
89
# Install AWS CLI to local user
89
- curl -s "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" && \
90
- unzip awscli-bundle.zip && \
91
- ./awscli-bundle/install -b ~/bin/aws && \
92
- rm awscli-bundle.zip && \
93
- rm -r awscli-bundle && \
90
+ pip3 install awscli && \
94
91
\
95
92
# Update ImageMagick policy to allow `convert` to convert PDF files to TIFF for OCR
96
93
sed -i 's+<policy domain="coder" rights="none" pattern="PDF" />+<policy domain="coder" rights="read" pattern="PDF" />+g' /etc/ImageMagick-6/policy.xml && \
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ ENV LC_ALL en_US.UTF-8
17
17
ENV RUBY_VERSION 2.4
18
18
19
19
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C3173AA6 && \
20
- echo deb http ://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main > /etc/apt/sources.list.d/pgdg.list && \
20
+ echo deb https ://apt-archive .postgresql.org/pub/repos/apt/ trusty-pgdg main > /etc/apt/sources.list.d/pgdg.list && \
21
21
mkdir -p /usr/share/man/man1 && mkdir -p /usr/share/man/man7 && \
22
22
echo deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu trusty main > /etc/apt/sources.list.d/brightbox-ruby-ng-trusty.list && \
23
23
apt-get update -q && apt-get install -yq --no-install-recommends ca-certificates curl \
@@ -32,16 +32,13 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C3173AA6 &
32
32
build-essential \
33
33
git \
34
34
procps \
35
- python -dev \
36
- python -pip \
35
+ python3 -dev \
36
+ python3 -pip \
37
37
jq && \
38
38
rm -rf /usr/share/man/man1 && \
39
39
rm -rf /usr/share/man/man7 && \
40
40
# Install AWS CLI
41
- python -m pip install -U pip && \
42
- pip install -U six && \
43
- pip install awscli && \
44
- pip install awsebcli && \
41
+ pip3 install awscli && \
45
42
# clean up
46
43
rm -rf /var/lib/apt/lists/* && \
47
44
truncate -s 0 /var/log/*log
You can’t perform that action at this time.
0 commit comments