Skip to content

Commit 1ca3261

Browse files
authored
Update Dockerfile
1 parent 54ba1db commit 1ca3261

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

Dockerfile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -186,30 +186,29 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
186186

187187
# resolves #166
188188
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php
189-
RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community gnu-libiconv iotop tshark && \
189+
RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community gnu-libiconv iotop tshark libmcrypt-dev libzip-dev && \
190190
apk add --no-cache busybox-extras gdb tcpdump tcpflow nload iperf bind-tools net-tools sysstat strace ltrace tree readline screen tmux vim unzip && \
191191
apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ lrzsz && \
192192
# DEPENDENCY TO ALLOW USERS TO RUN crontab
193193
apk add --no-cache --update busybox-suid
194194

195-
RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
195+
RUN echo @main http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories && \
196196
echo /etc/apk/respositories && \
197197
apk update && apk upgrade &&\
198198
apk add --no-cache \
199199
bash \
200200
openssh-client \
201201
wget \
202+
python3 \
203+
python3-dev \
204+
py3-pip \
202205
supervisor \
203206
curl \
204207
libcurl \
205-
libzip-dev \
206208
bzip2-dev \
207209
imap-dev \
208210
openssl-dev \
209211
git \
210-
python \
211-
python-dev \
212-
py-pip \
213212
augeas-dev \
214213
ca-certificates \
215214
dialog \
@@ -218,7 +217,6 @@ RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repo
218217
gcc \
219218
musl-dev \
220219
linux-headers \
221-
libmcrypt-dev \
222220
libpng-dev \
223221
libwebp-dev \
224222
icu-dev \
@@ -250,8 +248,8 @@ RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repo
250248
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
251249
php composer-setup.php --quiet --install-dir=/usr/bin --filename=composer && \
252250
rm composer-setup.php && \
253-
pip install -U pip && \
254-
apk del gcc musl-dev linux-headers libffi-dev augeas-dev python-dev make autoconf libwebp-dev heimdal-dev
251+
pip3 install --upgrade pip && \
252+
apk del gcc musl-dev linux-headers libffi-dev augeas-dev python3-dev make autoconf libwebp-dev heimdal-dev
255253

256254
# Install protoc & Enable grpc
257255
RUN if [ "`echo "$ENABLE_PHP_EXTENSION_GRPC" | tr '[:upper:]' '[:lower:]'`" == "yes" ]; then \

0 commit comments

Comments
 (0)