-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
42 lines (35 loc) · 909 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM alpine:latest
WORKDIR /app
RUN apk --no-cache add \
bash \
bind-tools \
ca-certificates \
git \
curl \
unzip \
php7 \
php7-openssl \
php7-curl \
php7-json \
php7-dom \
php7-phar \
php7-tokenizer \
php7-iconv \
php7-intl \
php7-mbstring \
php7-xml
# Download the latest phar file from Google Drive.
RUN curl -sL 'https://drive.google.com/uc?export=download&id=1ekyddD40wrUBT0GCjHo3Kh1JEL8skLqf' > /usr/local/bin/cfcli \
&& chmod +x /usr/local/bin/cfcli
COPY resources/php.ini /etc/php7/php.ini
# Install libsvm, compile from source, and then remove dependencies.
COPY resources/libsvm.sh /tmp/libsvm.sh
RUN apk add --no-cache --virtual .build-deps \
g++ \
make \
&& chmod +x /tmp/libsvm.sh \
&& /tmp/libsvm.sh \
&& rm /tmp/libsvm.sh \
&& apk del .build-deps
RUN cfcli setup:verify
ENTRYPOINT ["cfcli"]