-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (33 loc) · 876 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
FROM alpine:3
LABEL maintainer="Yoann VANITOU <[email protected]>"
ARG CURL_VERSION=7.80.0
RUN set -x \
&& apk add --no-cache --virtual mybuild \
build-base \
&& apk add --no-cache \
openssl \
openssl-dev \
nghttp2-dev \
ca-certificates \
tzdata \
&& cd /tmp \
&& wget "https://curl.haxx.se/download/curl-$CURL_VERSION.tar.bz2" \
&& tar xjvf curl-$CURL_VERSION.tar.bz2 \
&& cd curl-$CURL_VERSION \
&& ./configure \
--with-nghttp2=/usr \
--prefix=/usr \
--with-ssl \
--enable-ipv6 \
--enable-unix-sockets \
--without-libidn \
--disable-static \
--with-pic \
&& make -j$(nproc) \
&& make install \
&& cd \
&& rm -rf /tmp/* \
&& apk del mybuild
ADD rootfs/ /
ENTRYPOINT ["/entrypoint.sh"]
CMD ["curl", "--help"]