-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (20 loc) · 759 Bytes
/
Dockerfile
File metadata and controls
23 lines (20 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM alpine:3.6
ADD . /src
ADD http://apache.mirrors.ovh.net/ftp.apache.org/dist/xerces/c/3/sources/xerces-c-3.2.2.tar.gz /xerces/xerces-c-3.2.2.tar.gz
RUN runtime_deps='libstdc++ openssl' \
&& apk add --virtual .build-dependencies --no-cache openssl-dev cmake build-base expat \
&& cd /xerces \
&& tar -xf xerces-c-3.2.2.tar.gz \
&& cd xerces-c-3.2.2 \
&& ./configure --disable-static \
&& make \
&& make install \
&& cd /src \
&& rm -Rf /xerces \
&& ./configure --build=x86_64 --host=x86_64 --target=x86_64 --enable-phdr --enable-as-02 --with-xerces=/usr/local .. \
&& make \
&& make install \
&& apk del .build-dependencies \
&& apk add --no-cache $runtime_deps \
&& cd / \
&& rm -Rf /src